mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Alembic Loader as Arnold Standin
This commit is contained in:
parent
3186acc83e
commit
cf8bd8eb59
1 changed files with 5 additions and 1 deletions
|
|
@ -98,6 +98,7 @@ class AlembicStandinLoader(load.LoaderPlugin):
|
|||
# Update the standin
|
||||
standins = list()
|
||||
members = pm.sets(container['objectName'], query=True)
|
||||
self.log.info("container:{}".format(container))
|
||||
for member in members:
|
||||
shape = member.getShape()
|
||||
if (shape and shape.type() == "aiStandIn"):
|
||||
|
|
@ -105,8 +106,11 @@ class AlembicStandinLoader(load.LoaderPlugin):
|
|||
|
||||
for standin in standins:
|
||||
standin.dso.set(path)
|
||||
standin.useFrameExtension.set(0)
|
||||
standin.abcFPS.set(float(fps))
|
||||
if "modelMain" in container['objectName']:
|
||||
standin.useFrameExtension.set(0)
|
||||
else:
|
||||
standin.useFrameExtension.set(1)
|
||||
|
||||
container = pm.PyNode(container["objectName"])
|
||||
container.representation.set(str(representation["_id"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue