mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Minor cleanup.
This commit is contained in:
parent
0b7e3b6606
commit
fe40624135
3 changed files with 13 additions and 3 deletions
|
|
@ -6,6 +6,17 @@ from maya import cmds
|
|||
import pyblish.api
|
||||
from openpype.hosts.maya.api import lib
|
||||
|
||||
SHAPE_ATTRS = ["castsShadows",
|
||||
"receiveShadows",
|
||||
"motionBlur",
|
||||
"primaryVisibility",
|
||||
"smoothShading",
|
||||
"visibleInReflections",
|
||||
"visibleInRefractions",
|
||||
"doubleSided",
|
||||
"opposite"]
|
||||
|
||||
SHAPE_ATTRS = set(SHAPE_ATTRS)
|
||||
|
||||
def get_look_attrs(node):
|
||||
"""Returns attributes of a node that are important for the look.
|
||||
|
|
@ -92,7 +103,7 @@ def seq_to_glob(path):
|
|||
"<uvtile>": "<uvtile>",
|
||||
"#": "#",
|
||||
"u<u>_v<v>": "<u>|<v>",
|
||||
"<frame0": "<frame0\d+>",
|
||||
"<frame0": "<frame0\d+>", #noqa - copied from collect_look.py
|
||||
"<f>": "<f>"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class ExtractLook(openpype.api.Extractor):
|
|||
|
||||
label = "Extract Look (Maya Scene + JSON)"
|
||||
hosts = ["maya"]
|
||||
families = ["look","mvLook"]
|
||||
families = ["look", "mvLook"]
|
||||
order = pyblish.api.ExtractorOrder + 0.2
|
||||
scene_type = "ma"
|
||||
look_data_type = "json"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import os
|
||||
import six
|
||||
|
||||
from maya import cmds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue