The issue might be caused by the graph not re-evaluating connections made to components when you duplicate. You can try to force a re-evaluation by doing what Nicolas suggests, getting the attribute. If that works, you should also find that the duplicate works when you reload the scene.
There is also a dedicated command to force re-evaluation called dgdirty <http://help.autodesk.com/cloudhelp/2015/ENU/Maya-Tech-Docs/CommandsPython/dgdirty.html> . On 3 January 2015 at 10:22, Nicolas Combecave <[email protected]> wrote: > Could you try the following command after the duplication and see if it > triggers the correct dirtying of the connections? > > getAttr -silent "yourNurbsCurveShape.local"; > > > 2015-01-02 22:50 GMT+01:00 <[email protected]>: > >> Hey Guys, >> >> I'm working on some rigging tools for our transition from XSI to Maya. >> Right now, I'm just trying to get a decent duplicate symmetry tool, but I'm >> hitting some problems. >> >> I'm still figuring out exactly how I want to script it. But with what I >> currently have, I'm having an issue with the rig updating after the >> duplicating. >> >> Basically, I have a group of controllers with a nurbsCurve CV's >> constrained to each controller. Those nulls and curve are grouped under a >> buffer transform. So I select the buffer transform and run my code. >> Everything duplicates fine, the groups with it's children, the curve, and >> the utility nodes that I'm using to constrain the CV's to the controls. If >> I graph the newly duplicated curve in the node editor, all the connections >> are correct. However, If I translate a control, the nurbsCurve doesn't >> move with the control. I finally tried breaking one of the connections and >> then remaking it. Now the curve moves correctly with the controls. What's >> making this happen, or how can I prevent this from happening? >> >> Thanks >> Kev >> >> -- >> 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/2e10093d-9616-43f2-b7f1-d9ad9ab1536f%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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/CAD65uq%3DUc04axyMXK3V5Caw4KVvhn4BWurGXis%2BXUdZHhwd9%2Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAD65uq%3DUc04axyMXK3V5Caw4KVvhn4BWurGXis%2BXUdZHhwd9%2Bg%40mail.gmail.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/CAFRtmOCO_f15WxD-y756hyG5TT6oOSJOGHFPmgV3f7iN%3D6xfGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
