mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
fix parenting issue when extracting proxy abc
This commit is contained in:
parent
b868e4be1a
commit
5c3d44a0ab
1 changed files with 12 additions and 9 deletions
|
|
@ -97,14 +97,17 @@ class ExtractProxyAlembic(publish.Extractor):
|
|||
end=end))
|
||||
|
||||
inst_selection = cmds.ls(nodes, long=True)
|
||||
cmds.geomToBBox(inst_selection,
|
||||
nameSuffix=name_suffix,
|
||||
keepOriginal=True,
|
||||
single=False,
|
||||
bakeAnimation=True,
|
||||
startTime=start,
|
||||
endTime=end)
|
||||
bbox_sel = cmds.ls(sl=True, long=True)
|
||||
|
||||
bbox = cmds.geomToBBox(inst_selection,
|
||||
nameSuffix=name_suffix,
|
||||
keepOriginal=True,
|
||||
single=False,
|
||||
bakeAnimation=True,
|
||||
startTime=start,
|
||||
endTime=end)
|
||||
#TODO: fix the scale or disparenting for the group
|
||||
# bbox_sel = cmds.listRelatives(bbox, parent=True)
|
||||
# cmds.ls(bbox_sel, long=True)
|
||||
master_group = cmds.group(name="bbox_grp")
|
||||
bbox_sel = cmds.ls(master_group, long=True)
|
||||
self.log.debug("proxy_root: {}".format(bbox_sel))
|
||||
return bbox_sel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue