For some reason it’s not allowed to change the path directly on the
AlembicNode.

Me thinks there are trolls in the implementation of the trusty ol’
AlembicNode.

Me thinks that if it did let you change the name, it would take Maya to the
grave. You can test this for yourself by replacing the file on disk -
essentially forcing a change of input. Maya will not approve.

My impression is that the Alembic implementation in Maya is rather
terrible. I tend to stick with the basics.

Maybe have a go with referencing the alembic instead, and make the path of
the reference your variable instead.
​

On 26 September 2016 at 20:14, Erik Johansson-Evegård <
[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/python_inside_maya/1507c50c-1783-469e-8dd7-aa45e94a325b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
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/CAFRtmOB3pKpgzikNJCkkj%2BX804uH7FDhkznYjeWVDhE74F8z3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to