mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #1332 from pypeclub/fix/make_tx-configurable-in-look-creator
Maya: Make tx option configurable with presets - OpenPype 3
This commit is contained in:
commit
58e51091c5
2 changed files with 27 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ class CreateLook(plugin.Creator):
|
||||||
family = "look"
|
family = "look"
|
||||||
icon = "paint-brush"
|
icon = "paint-brush"
|
||||||
defaults = ['Main']
|
defaults = ['Main']
|
||||||
|
make_tx = True
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(CreateLook, self).__init__(*args, **kwargs)
|
super(CreateLook, self).__init__(*args, **kwargs)
|
||||||
|
|
@ -19,7 +20,7 @@ class CreateLook(plugin.Creator):
|
||||||
self.data["renderlayer"] = lib.get_current_renderlayer()
|
self.data["renderlayer"] = lib.get_current_renderlayer()
|
||||||
|
|
||||||
# Whether to automatically convert the textures to .tx upon publish.
|
# Whether to automatically convert the textures to .tx upon publish.
|
||||||
self.data["maketx"] = True
|
self.data["maketx"] = self.make_tx
|
||||||
|
|
||||||
# Enable users to force a copy.
|
# Enable users to force a copy.
|
||||||
self.data["forceCopy"] = False
|
self.data["forceCopy"] = False
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,31 @@
|
||||||
"key": "create",
|
"key": "create",
|
||||||
"label": "Creator plugins",
|
"label": "Creator plugins",
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "dict",
|
||||||
|
"collapsible": true,
|
||||||
|
"key": "CreateLook",
|
||||||
|
"label": "Create Look",
|
||||||
|
"checkbox_key": "enabled",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"key": "enabled",
|
||||||
|
"label": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"key": "make_tx",
|
||||||
|
"label": "Make tx files"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "list",
|
||||||
|
"key": "defaults",
|
||||||
|
"label": "Default Subsets",
|
||||||
|
"object_type": "text"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "schema_template",
|
"type": "schema_template",
|
||||||
"name": "template_create_plugin",
|
"name": "template_create_plugin",
|
||||||
|
|
@ -28,10 +53,6 @@
|
||||||
"key": "CreateLayout",
|
"key": "CreateLayout",
|
||||||
"label": "Create Layout"
|
"label": "Create Layout"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"key": "CreateLook",
|
|
||||||
"label": "Create Look"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"key": "CreateMayaScene",
|
"key": "CreateMayaScene",
|
||||||
"label": "Create Maya Scene"
|
"label": "Create Maya Scene"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue