kattkieru
09-11-2008, 05:36 PM
Hello again,
On the heels of my last question, I'm wondering: when you plug a nurbs surface into a typed attribute plug with MFnData.kNurbsSurface as the type, everything seems gravy. However, modifying the points on the surface doesn't cause the output values to recalculate.
Now, I've done the following:
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTx)
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTy)
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTz)
...
to try to force this, but to no effect. Since I'm just using the shape to get point on surface info, I'm moving that part to a point on surface node and feeding those values into my node for calculation as a quick fix, but I'd really like to have everything contained in one node (seeing as this node's going to be used on the rig between thirty and fifty times).
Is there something special one has to do to get shape plugs to declare themselves dirty after you modify point values (either directly or through clusters / joints / etc)?
Thanks again.
On the heels of my last question, I'm wondering: when you plug a nurbs surface into a typed attribute plug with MFnData.kNurbsSurface as the type, everything seems gravy. However, modifying the points on the surface doesn't cause the output values to recalculate.
Now, I've done the following:
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTx)
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTy)
pluginTest.attributeAffects(pluginTest.aSurface, pluginTest.aOutTz)
...
to try to force this, but to no effect. Since I'm just using the shape to get point on surface info, I'm moving that part to a point on surface node and feeding those values into my node for calculation as a quick fix, but I'd really like to have everything contained in one node (seeing as this node's going to be used on the rig between thirty and fifty times).
Is there something special one has to do to get shape plugs to declare themselves dirty after you modify point values (either directly or through clusters / joints / etc)?
Thanks again.
