PDA

View Full Version : Illegal self referance


Wardile
12-22-2004, 06:04 PM
Hi

Can someone please help me out here.

I have a spline called HandLctrl. It contains 3 custom attributes named -Local, Twist, AutoTwist

I then have 3 bones... for the wrist rig. The 3rd bone is called twistL3. This bone has a float script on the z axis

------------------------------------------
dependsOn $handLCTRL $lowArmL ;
matParent = inverse $lowArmL.transform ;
matHand = $handLCTRL.transform ;
matResult = matHand * matParent ;
rotQuat = matResult.rotation ;
rotEuler = quatToEuler rotQuat order:3;
twist = rotEuler.z ;
twist = twist * $handLCTRL.Custom_Attributes.autoTwist / 100.0;
twist = twist + $handLCTRL.Custom_Attributes.wristTwist ;
twist = degToRad twist ;
----------------------------------------------

If i click evaluate it gives me the all ok. But then after working for a while i get
>> MAXScript Script Controller Exception: -- Runtime error: Illegal self-reference in controller script <<

Then max becomes unstable and crashes after a few more minutes.

What can the problem be ?

Wardile
12-25-2004, 09:19 PM
OK, let me ask this, can it be caused due to the fact that i cloned the entire left part to the right, and somehow this caused this issue ?

CGTalk Moderation
01-20-2006, 06:00 AM
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.