Hey Dylan, What's the type of the plug beeing keyframed (compound) ? Any chance there're some attributeAffects relationship declared in the init ?
Best, --- [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA] +33 (0)2 99 27 21 44 http://www.golaem.com On Mon, Nov 14, 2016 at 1:56 PM, Dylan Smith <[email protected]> wrote: > Heyo, I've got an odd issue. I've got a custom node with key frames on one > of the attributes. Whenever I hit play, the '*setDependentsDirty*' method > doesn't get called, and instead the '*compute*' method gets called twice. > I pulled all the code except for 3 lines (which I will post below) out of > the '*compute*' method just to make sure that I hadn't written something > that calls *compute *twice, but its still happening. Has anyone > encountered this and know of a way to fix/deal with it. I can even work > around the '*setDependentsDirty*' issue, its just the double '*compute*' > problem that I really need help with. > > Code left in Compute (sorry that its in c++. I'm writing something that > generates geometry so I need to squeeze all the performance I can get) > > MGlobal::displayInfo("COMPUTE CALLED!!!"); > data.setClean(plug); > return MS::kSuccess; > > -- > 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/c270ff60-b13e-4345-a7a9- > 28173452bf5e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/c270ff60-b13e-4345-a7a9-28173452bf5e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CAFS5DCbPeCcR%2B%2BzM%3DqB2E14vKyeGs84JaJP1PHObS0VAmQD6YA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
