mtuttle
So I got all the computation problems fixed where my node does everything I want it do, but it's still not doing it right. I put up on github a 2012 x64 version of the plugin and a example scene which shows how the node works so far. It basically is supposed to compute the targetOffset(s) on the parentConstraint node (locator3_parentConstraint1) automatically, when the constrained locator's (locator3) custom attribute ("parentSel") changes. Note that locator3.parentSel also changes the weights on the parentConstraint, and only it's message attribute is connected to the multiParentNode. When locator3.parentSel changes, the multiParentNode's "compute" function is supposed to get it's transformationMatrix, and set the multiParentNode's computeMatrix attribute to that matrix value. That computeMatrix is then inversely multiplied to one of the matrices of the targets and then it's translation and eulerRotation values are plugged into the outTranslate and outRotate attributes which are thus connected to the parentConstraints targetOffsetTranslate[i],targetOffsetRotate[i] attributes.

However the node is still outputting cycle warning and "jumps" the constrained locator3 instead of maintaining it's position after the parentSel attribute changes. Is it a problem with my order of execution, or something else?

You can find the plugin here: https://github.com/esotericDisciple/CircusDev/tree/master/multiParentNode/Debug_2012
The test scene:https://github.com/esotericDisciple/CircusDev/blob/master/multiParentNode/multiParentNode_test01.ma

And of course the code is in the parent directory of the above links.

Quote 0 0
mtuttle
update : plugin no longer cycles, but doesn't update each offset...Will reupload later...
Quote 0 0
pshipkov
I was about to take a look actually ... :)

Quote 0 0
mtuttle
You can look now. The latest example file hasn't linked the parentConstraint and the multiParentNode together, as I can't figure out how to get the offsets to update before the parentConstraint's targetWeights...
Quote 0 0
mtuttle
Update:I had to link the two nodes to fix the problem of the offsets attribute on my node not being saved...
Quote 0 0

Add a Website Forum to your website.