Been bashing my head against this today.
import maya.cmds as mc
mc.AbcImport('/path/to/alembic/animation1.abc', mode='import',
connect='|path|to|lookdev|asset')
This works fine and dandy and the lookdev asset moves as it should.
However then I wan't to switch to a new animation and have tried running
AbcImport again with path to the new animation and same connect. Tried both
import and replace mode.
It switches the animation of the asset but it also creates a new
AlembicNode keeping the old one in the scene. For some reason it's not
allowed to change the path directly on the AlembicNode.
With a ton of assets and a ton of animation updates this will create loads
and loads of not used AlembicNodes.
How are people solving this? Is anyone actually using AbcImport in
production?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/1507c50c-1783-469e-8dd7-aa45e94a325b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.