Hi,
I’ve been trying to figure out how to create a script that copies the rotation value of my object into the projection node e.g polyPlanarProj1.
I’m using a clunky script:
string $selection[] = `ls -sl`;
float $rX = `getAttr $selection.rotateX`;
float $rY = `getAttr $selection.rotateY`;
float $rZ = `getAttr $selection.rotateZ`;
setAttr polyPlanarProj1.rotateX $rX;
setAttr polyPlanarProj1.rotateY $rY;
setAttr polyPlanarProj1.rotateZ $rZ;
but this is useless if i have more than one projection node in the scene or a different projection node on the object.
can anyone help make this more flexible?
Thanks