Skip to content

Commit

Permalink
modified example creator
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 18, 2022
1 parent 23c3bc8 commit 95176b6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion openpype/hosts/testhost/plugins/create/test_creator_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class TestCreatorOne(Creator):
family = "test"
description = "Testing creator of testhost"

create_allow_context_change = False

def get_icon(self):
return resources.get_openpype_splash_filepath()

Expand Down Expand Up @@ -48,7 +50,17 @@ def get_default_variants(self):

def get_attribute_defs(self):
output = [
lib.NumberDef("number_key", label="Number")
lib.NumberDef("number_key", label="Number"),
]
return output

def get_pre_create_attr_defs(self):
output = [
lib.BoolDef("use_selection", label="Use selection"),
lib.UISeparatorDef(),
lib.UILabelDef("Testing label"),
lib.FileDef("filepath", folders=True, label="Filepath"),
lib.FileDef("filepath_2", multipath=True, folders=True, label="Filepath 2")
]
return output

Expand Down

0 comments on commit 95176b6

Please sign in to comment.