Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   A dumbed down version (https://simplymaya.com/forum/showthread.php?t=17032)

Dann 13-06-2005 05:59 PM

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 ;
}


All times are GMT. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018