PDA

View Full Version : outer local variable reference


f3derico
10-18-2007, 09:44 AM
hi, I'm trying to use penAttributeHolder (http://paulneale.com/scripts/penAttributeHolder/penAttributeHolder.htm) script in a rig script i'm writing.Ididn't want it as a plugin but to be a part of the script, so I made some test with a simple box, create a rollout with button and it work fine, now when I insert it in my code it return the error : No outer local variable references permitted here.
what's the problem? it seems to not define the call of a variable, i even tried to move variable declaration inside the block where the error appear.

arketip
10-18-2007, 10:19 AM
Usually this error happens when there are no brackets with a local statement.
Is your main code between () ?

f3derico
10-18-2007, 10:34 AM
I found the mistake. in PEN script there many local variable called "ca" and in my script I already declared variable with this name for other use. so I change evrey "ca" in PEN script with other name

CGTalk Moderation
10-18-2007, 10:34 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.