Does it have to be using the API?
How about:
from maya import cmds
cmds.duplicate('MyNode')
It’s got flags to also copy connections, or to duplicate the nodes leading
into it.
On 20 August 2014 12:25, ktj428 <[email protected]> wrote:
> Ah.. so I have to copy all of values manually... It is not easy way ^^
>
> thank you for your answer!!!
>
> --
> 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/fab722b6-9b5f-4f77-b10f-fd40a5b112e7%40googlegroups.com
> .
> 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/CAFRtmODgsXJ0OG4Me7Jv1MpmMzbhHuOPOMWSvh0chBXStxf2Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.