|
Thanks for the help! This script seems to work great at what is does, although is it possible to have the values of the driver set by the driven with this script?
For example I’d like the null to turn on/off the visibility of an object as it passes its y on an object per object bases.
New to mel so I’m still trying to get this script to work, but here is the base. Its pretty simple I’m trying to have the key values of the driver (null) driven by the getAttr of my selected objects. I know i need a for loop array, but having problems with syntax.
float $findME = `getAttr pCube1.translateY`;
setAttr locator1.translateY ($findME -.5);
setDrivenKeyframe -currentDriver locator1.translateY pCube1.visibility;
// Result: 1 // select -cl ; select -r locator1 ; setAttr locator1.translateY ($findME); select -cl ; select -r pCube1 ; setAttr "pCube1.visibility" 0; setDrivenKeyframe -currentDriver locator1.translateY pCube1.visibility; // Result: 1 //
Author: pmcavena
|