PDA

View Full Version : Please help w/simple error


EightBit
08-07-2009, 07:55 AM
Can someone see why this error is occurring?
getAttr $joint2.tx;
// Result: 0 //
getAttr Boxy.tx;
// Result: 0 //
getAttr Boxy.translateX;
// Result: 0 //
connectAttr -f Boxy.tx $joint2.tx;
// Error: line 1: Invalid object or value: .tx //
connectAttr -f Boxy.translateX $joint2.translateX;
// Error: line 1: Invalid object or value: .translateX //

Thanks much.

mlefevre
08-07-2009, 08:59 AM
I'm suprised that
getAttr $myVar.tx;
even works at all. O.o

Anyways, this would be the way I'd go about it.


getAttr ($myObj + ".tx");
connectAttr -f pCube1.tx ($myObj + ".tx");

EightBit
08-07-2009, 03:31 PM
Just what I needed... in several places of my script.
Thanks a lot.
:beer:

CGTalk Moderation
08-07-2009, 03:31 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.