View Single Post
# 1 13-06-2005 , 05:59 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

A dumbed down version

OK, for some reason, I can't seem to post another reply to my thread right now, so I had to start a new one. Poor etiquette I know. Sorry.

Why doesn't this work? If the variable is global, why does Maya say it's undefined?

global proc localGlobal ()
{
global string $thisIsAGlobalVariable = "It's global.";
}
global proc printIt ()
{
print $thisIsAGlobalVariable ;
}