I need help on matching the position of clusterHandleShape.origin(X,Y,Z) to defined position of the object(translateXYZ).
manually i can copy and paste the object’s translations one by one on clusterHandleShape.origin(X,Y,Z) which is very nervy :banghead:
is there any way that can be matched easily like constraint or scripting.
match the position of clusterHandleShape.origin(X,Y,Z) to defined position
With mel and python you can query and set most types of attributes, so yes, this would be easy with a script. Have a read about getAttr and setAttr as a start point. If you want to go the pymel route, then there are also methods like getTranslation and setTranslation.
David
well! i am not a programmer and understand very less about scripting. i just love to copy, paste and rename the available scripts instead of writing myself. But i appreciate the response thanks. i was expecting one example but i think it will be easy for me to do it myself.
thanks djx
float $locX =getAttr locator1.tx;
setAttr cluster1HandleShape.originX $revX;
float $locY =getAttr locator1.ty;
setAttr cluster1HandleShape.originY $revY;
float $locZ =getAttr locator1.tz;
setAttr cluster1HandleShape.originZ $revZ;
yeah done this way but i cannot copy the values of translate channel if its connected to other channel like rivet