This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 10-03-2006 , 12:12 PM

Registered User
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224

This is the third procedure called, in the Walkerman program.

If you are stepping thru Walkerman with the script editor, you would be doing this:

int \$n = 1;

Then we come to this procedure:

Here we are just building strings so we can use them later in the code. . . .
// BODY JOINTS
string \$bb = "bb" + \$n; // gives "bb1"
string \$hc = "hc" + \$n; // gives "hc1"
string \$hl = "hl" + \$n; // gives "hl1"
string \$hr = "hr" + \$n; // etc . . .
string \$ls = "ls" + \$n;
string \$rs = "rs" + \$n;

Now the FUN part . . .

Here we build the string we need to add the mathematical coding for the expression we want.

string \$exp1 = \$hl + ".rotateZ = " + \$hl + ".legSpread + tan(" +
\$bb + ".clock * " + \$hc + ".hipSwing/" + \$bb
+ ".initYposition - .5)-5.74;";

Not a wide enough window to show the expression properly here, but it builds to a string:

tan(bb1.clock * hc1.hipSwing/bb1.initYposition -.5)-
5.74;

Now we actually create the expression:

expression -s \$exp1 -o hl -ae 1 -uc all;

Jumping to a easier expression:

string \$exp3 = \$ls + ".tx = -"+ \$rs + ".tx;";

builds the string:

ls1.tx = -rs1.tx;

Then we create the expression:
expression -s \$exp3 -o rs -ae 1 -uc all ;

Everything that follows is basically the same functions being repeated to create coding for all the joints in the body. . . . and lots of fun stuff like MATH - a fun can of worms to open up if you have the time and patience. . . .

Keep in mind that the code

ls1.tx = -rs1.tx;

could also be:

ls2.tx = -rs2.tx; or ls4.tx = -rs4.tx;

Depending on which character number you are building.

Then we want the parent of all the joints selected as we exit the procedure . . .

select -r \$bb;

}

The only complicated part of this procedure is the math . . . .
Building the sttings for the code can be a pain too, but you can print the expressions out in the script editor to see what they look like and then edit them as needed.

"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche

##### 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

### Topics

10

By e11productions Animation
0

0

3

5

2

### VFX News

On 2022-07-18 14:30:13

On 2022-07-18 14:17:59

On 2022-07-15 13:14:36

On 2022-05-13 13:52:25

On 2022-05-02 20:24:13

On 2022-04-13 16:02:13