Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 30-10-2006 , 05:17 PM
Registered User
Join Date: Oct 2006
Posts: 10

about global variables

I would like to ask if the global variable that I have defined in one of the scripts of the folder :my files>maya>scripts are loaded automatically, like happens with the procedures that I have defined in that folder, or if I have to define it each time that I'm using it,...

# 2 03-11-2006 , 10:06 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
global variables will be defined when the script that defines them is called.

e.g.

myfile.mel:
<<

global float $a;

global proc myProc()
{
//$a will now be available to use in this function
global float $a;
//assign a value to $a
$a = 1.0;
}

>>


Technical Director - Framestore

Currently working on: Your Highness

IMDB
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads