Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1332 from pypeclub/fix/make_tx-configurable-in-lo…
Browse files Browse the repository at this point in the history
…ok-creator

Maya: Make tx option configurable with presets - OpenPype 3
  • Loading branch information
mkolar authored Apr 14, 2021
2 parents f5f5948 + 57e2972 commit 58e5109
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
3 changes: 2 additions & 1 deletion openpype/hosts/maya/plugins/create/create_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ class CreateLook(plugin.Creator):
family = "look"
icon = "paint-brush"
defaults = ['Main']
make_tx = True

def __init__(self, *args, **kwargs):
super(CreateLook, self).__init__(*args, **kwargs)

self.data["renderlayer"] = lib.get_current_renderlayer()

# 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.
self.data["forceCopy"] = False
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@
"key": "create",
"label": "Creator plugins",
"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",
"name": "template_create_plugin",
Expand All @@ -28,10 +53,6 @@
"key": "CreateLayout",
"label": "Create Layout"
},
{
"key": "CreateLook",
"label": "Create Look"
},
{
"key": "CreateMayaScene",
"label": "Create Maya Scene"
Expand Down

0 comments on commit 58e5109

Please sign in to comment.