Minor cleanup.

This commit is contained in:
DMO 2022-05-20 10:38:45 +09:00
parent 0b7e3b6606
commit fe40624135
3 changed files with 13 additions and 3 deletions

View file

@ -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>"
}

View file

@ -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"

View file

@ -1,5 +1,4 @@
import os
import six
from maya import cmds