For my first post, I though I'd show you how to do something I though was cool, a keyword search feature.
I find it difficult sometimes to find information for mel scripting out there. Not that it doesnt exist, but it is scattered all over the place and sometimes very difficult to understand. So I decided to start a blog to share what I know with everyone else and hopefully others will share some of their knowledge with readers. Please feel free to email me links, examples, questions, references, or whatever you have used to help you with your melscripting needs.
Popular Posts
Showing posts with label maya. Show all posts
Showing posts with label maya. Show all posts
Tuesday, February 22, 2011
Basic Mel: Variables
Defining Variables
Knowing how to define variables is the first thing you should learn if you want to start Mel Scripting. It is very basic, but after awhile this becomes second nature. Here is an example of how you would define one:
string $variableName = "Toast";
(variable type) $(variable name) = (value);
The variable type always comes first, followed by the variable name.
The variable name must always come after a dollar sign ($). This lets Maya know the name of the variable.
Finally the value is what that variable equals.
You must end each equation in maya with a semi-colon (;). This tells Maya that this is the end of that equation.
Labels:
"mel scripting for dummies",
array,
float,
integer,
matrix,
maya,
mel,
string,
variables,
vector
Subscribe to:
Posts (Atom)