mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
OP/MV: Export correct node , export composition with absolute path.
This commit is contained in:
parent
deedc893bf
commit
40d487221a
2 changed files with 6 additions and 12 deletions
|
|
@ -149,12 +149,6 @@ class ExtractMultiverseUsd(openpype.api.Extractor):
|
|||
|
||||
with maintained_selection():
|
||||
members = instance.data("setMembers")
|
||||
members = cmds.ls(members,
|
||||
dag=True,
|
||||
shapes=True,
|
||||
type=("mesh"),
|
||||
noIntermediate=True,
|
||||
long=True)
|
||||
self.log.info('Collected object {}'.format(members))
|
||||
|
||||
import multiverse
|
||||
|
|
|
|||
|
|
@ -90,12 +90,6 @@ class ExtractMultiverseUsdComposition(openpype.api.Extractor):
|
|||
|
||||
with maintained_selection():
|
||||
members = instance.data("setMembers")
|
||||
members = cmds.ls(members,
|
||||
dag=True,
|
||||
shapes=True,
|
||||
type="mvUsdCompoundShape",
|
||||
noIntermediate=True,
|
||||
long=True)
|
||||
self.log.info('Collected object {}'.format(members))
|
||||
|
||||
import multiverse
|
||||
|
|
@ -119,6 +113,12 @@ 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 " +
|
||||
"inccorect reference paths.")
|
||||
else:
|
||||
comp_write_opts.forceAbsolutePaths = True
|
||||
options_discard_keys = {
|
||||
'numTimeSamples',
|
||||
'timeSamplesSpan',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue