mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Merge pull request #153 from BigRoy/master
Fix writeUVSet support for pointcache/alembic extraction and some better error/warning logging
This commit is contained in:
commit
e236ea0304
3 changed files with 7 additions and 15 deletions
|
|
@ -76,6 +76,7 @@ _alembic_options = {
|
|||
"writeColorSets": bool,
|
||||
"writeFaceSets": bool,
|
||||
"writeCreases": bool, # Maya 2015 Ext1+
|
||||
"writeUVSets": bool, # Maya 2017+
|
||||
"dataFormat": str,
|
||||
"root": (list, tuple),
|
||||
"attr": (list, tuple),
|
||||
|
|
@ -607,6 +608,8 @@ def extract_alembic(file,
|
|||
|
||||
# Discard unknown options
|
||||
if key not in _alembic_options:
|
||||
log.warning("extract_alembic() does not support option '%s'. "
|
||||
"Flag will be ignored..", key)
|
||||
options.pop(key)
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -35,11 +35,9 @@ class ExtractColorbleedAlembic(colorbleed.api.Extractor):
|
|||
# Get extra export arguments
|
||||
writeColorSets = instance.data.get("writeColorSets", False)
|
||||
|
||||
self.log.info("Extracting animation..")
|
||||
self.log.info("Extracting pointcache..")
|
||||
dirname = self.staging_dir(instance)
|
||||
|
||||
self.log.info("nodes: %s" % str(nodes))
|
||||
|
||||
parent_dir = self.staging_dir(instance)
|
||||
filename = "{name}.abc".format(**instance.data)
|
||||
path = os.path.join(parent_dir, filename)
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ class ValidateTransfers(pyblish.api.InstancePlugin):
|
|||
if not transfers:
|
||||
return
|
||||
|
||||
verbose = instance.data.get('verbose', False)
|
||||
|
||||
# Collect all destination with its sources
|
||||
collected = defaultdict(set)
|
||||
for source, destination in transfers:
|
||||
|
|
@ -39,16 +37,9 @@ class ValidateTransfers(pyblish.api.InstancePlugin):
|
|||
if len(sources) > 1:
|
||||
invalid_destinations.append(destination)
|
||||
|
||||
if verbose:
|
||||
self.log.error("Non-unique file transfer for resources: "
|
||||
"{0} (sources: {1})".format(destination,
|
||||
sources))
|
||||
self.log.error("Non-unique file transfer for resources: "
|
||||
"{0} (sources: {1})".format(destination,
|
||||
list(sources)))
|
||||
|
||||
if invalid_destinations:
|
||||
if not verbose:
|
||||
# If not verbose then still log the resource destination as
|
||||
# opposed to every individual file transfer
|
||||
self.log.error("Non-unique file transfers to destinations: "
|
||||
"%s" % "\n".join(invalid_destinations))
|
||||
|
||||
raise RuntimeError("Invalid transfers in queue.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue