Hi everyone, I just realized there was a problem with my way of creating a new anim layer, but I can't quite figure it out.
I explain how I realized it. I have a script that allows me to format manipulator animations in a json. Without animLayer or with the creation of animLayer via the maya button I have no problem of speed, less than 1 second for 280 manipulators. However, as soon as I add an animLayer with cmds.animLayer(s_layer, edit=True, addSelectedObjects=True) I go to 6 seconds. I realized that I was also giving all the shapes of all manipulators and not just the instantiating shapes for the rig attributes. To solve my problem I therefore only recover the shapes that interest me. But I have to do a little trick in the code that I don't like. I wish it was less restrictive... What is maya doing in its "Create layer and assign selected objects" button that the animLayer command does not? I tried to add the nodes with only the attributes that interest me but it didn't change anything. Or I misused the attribute argument of the command. Thank you in advance 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/f15b9626-5c6f-4b4c-8473-c3a806ebc954n%40googlegroups.com.
