This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into release/3.15.x
# Conflicts: # openpype/hosts/aftereffects/api/pipeline.py # openpype/hosts/photoshop/api/pipeline.py # openpype/hosts/photoshop/plugins/create/create_legacy_image.py # openpype/modules/deadline/plugins/publish/submit_publish_job.py
- Loading branch information
Showing
178 changed files
with
1,711 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import os | ||
from Qt import QtWidgets | ||
|
||
from qtpy import QtWidgets | ||
|
||
import pyblish.api | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import os | ||
import sys | ||
|
||
from Qt import QtCore | ||
from qtpy import QtCore | ||
|
||
|
||
class PulseThread(QtCore.QThread): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Tools to work with GLTF.""" | ||
import logging | ||
|
||
from maya import cmds, mel # noqa | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
_gltf_options = { | ||
"of": str, # outputFolder | ||
"cpr": str, # copyright | ||
"sno": bool, # selectedNodeOnly | ||
"sn": str, # sceneName | ||
"glb": bool, # binary | ||
"nbu": bool, # niceBufferURIs | ||
"hbu": bool, # hashBufferURI | ||
"ext": bool, # externalTextures | ||
"ivt": int, # initialValuesTime | ||
"acn": str, # animationClipName | ||
"ast": int, # animationClipStartTime | ||
"aet": int, # animationClipEndTime | ||
"afr": float, # animationClipFrameRate | ||
"dsa": int, # detectStepAnimations | ||
"mpa": str, # meshPrimitiveAttributes | ||
"bpa": str, # blendPrimitiveAttributes | ||
"i32": bool, # force32bitIndices | ||
"ssm": bool, # skipStandardMaterials | ||
"eut": bool, # excludeUnusedTexcoord | ||
"dm": bool, # defaultMaterial | ||
"cm": bool, # colorizeMaterials | ||
"dmy": str, # dumpMaya | ||
"dgl": str, # dumpGLTF | ||
"imd": str, # ignoreMeshDeformers | ||
"ssc": bool, # skipSkinClusters | ||
"sbs": bool, # skipBlendShapes | ||
"rvp": bool, # redrawViewport | ||
"vno": bool # visibleNodesOnly | ||
} | ||
|
||
|
||
def extract_gltf(parent_dir, | ||
filename, | ||
**kwargs): | ||
|
||
"""Sets GLTF export options from data in the instance. | ||
""" | ||
|
||
cmds.loadPlugin('maya2glTF', quiet=True) | ||
# load the UI to run mel command | ||
mel.eval("maya2glTF_UI()") | ||
|
||
parent_dir = parent_dir.replace('\\', '/') | ||
options = { | ||
"dsa": 1, | ||
"glb": True | ||
} | ||
options.update(kwargs) | ||
|
||
for key, value in options.copy().items(): | ||
if key not in _gltf_options: | ||
log.warning("extract_gltf() does not support option '%s'. " | ||
"Flag will be ignored..", key) | ||
options.pop(key) | ||
options.pop(value) | ||
continue | ||
|
||
job_args = list() | ||
default_opt = "maya2glTF -of \"{0}\" -sn \"{1}\"".format(parent_dir, filename) # noqa | ||
job_args.append(default_opt) | ||
|
||
for key, value in options.items(): | ||
if isinstance(value, str): | ||
job_args.append("-{0} \"{1}\"".format(key, value)) | ||
elif isinstance(value, bool): | ||
if value: | ||
job_args.append("-{0}".format(key)) | ||
else: | ||
job_args.append("-{0} {1}".format(key, value)) | ||
|
||
job_str = " ".join(job_args) | ||
log.info("{}".format(job_str)) | ||
mel.eval(job_str) | ||
|
||
# close the gltf export after finish the export | ||
gltf_UI = "maya2glTF_exporter_window" | ||
if cmds.window(gltf_UI, q=True, exists=True): | ||
cmds.deleteUI(gltf_UI) |
Oops, something went wrong.