mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Removing attr check and explaining in a comment.
This commit is contained in:
parent
b796c2563d
commit
8bb0c27791
1 changed files with 12 additions and 6 deletions
|
|
@ -113,12 +113,18 @@ class ExtractMultiverseUsdComposition(openpype.api.Extractor):
|
|||
time_opts.framePerSecond = fps
|
||||
|
||||
comp_write_opts = multiverse.CompositionWriteOptions()
|
||||
if not hasattr(comp_write_opts, "forceAbsolutePaths"):
|
||||
self.log.warning("multiverse.CompositionWriteOptions is " +
|
||||
"missing 'forceAbsolutePaths', extract " +
|
||||
"will yield incorrect reference paths.")
|
||||
else:
|
||||
comp_write_opts.forceAbsolutePaths = True
|
||||
|
||||
"""
|
||||
OP tells MV to write to a staging directory, and then moves the
|
||||
file to it's final publish directory. By default, MV write relative
|
||||
paths, but these paths will break when the referencing file moves.
|
||||
This option forces writes to absolute paths, which is ok within OP
|
||||
because all published assets have static paths, and MV can only
|
||||
reference published assets. When a proper UsdAssetResolver is used,
|
||||
this won't be needed.
|
||||
"""
|
||||
comp_write_opts.forceAbsolutePaths = True
|
||||
|
||||
options_discard_keys = {
|
||||
'numTimeSamples',
|
||||
'timeSamplesSpan',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue