Introduction to Maya - Modeling Fundamentals Vol 2
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 23-07-2004 , 04:03 PM
Registered User
Join Date: Apr 2004
Location: Leamington Spa, Uk
Posts: 5

JointCounter Script?

Hi Guys,

Im looking for a very simple thing really, exactly like the HUD display that shows the number of verts and faces, but i want Maya to tell me how many bones I have in the scene!

Is there a simple script out there that does exactly this that you guys know about? If so....please let me have it!! user added image

I have no coding skills at all and have tried altering a mel script that shows the number of triangles in the scene. I changed a few words that said triangles and replaced them with Joints, and a few other things but no luck....i wasnt hopeful. I have managed to get the word "Joints" up on screen but it doesnt count how many there are. user added image

Any help appreciated,

Yours Truely....
Shittest Coder out there

# 2 23-07-2004 , 04:27 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
put this in the script editor:

SelectAllJoints;
string $stuff[] = `ls -sl`;

int $numbjoints = `size($stuff)`;

print("Number of Joints in the scene: "+ $numbjoints +"\n");


you can then use what you did before to get the number up on the screen. Post the script cause i'd be interested in how you got that stuff up there.

Alan


Technical Director - Framestore

Currently working on: Your Highness

IMDB
# 3 23-07-2004 , 05:06 PM
dannyngan's Avatar
Registered User
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154

mwahahahaha



Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
# 4 23-07-2004 , 05:20 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
:p bet it does the same thing user added image

user added image


Technical Director - Framestore

Currently working on: Your Highness

IMDB
# 5 27-07-2004 , 09:18 AM
Registered User
Join Date: Apr 2004
Location: Leamington Spa, Uk
Posts: 5
WOW you guys are cool!
The script looked alot like the one i badgered together, but yours worked! user added image

Works like a charm!
Cheers guys, appreciated.

Jimbo

one more thing if you dont mind....user added image

how would i go about putting this script in the same place as the other HUD display options....Display/Heads Up Display/....

Is this easy to do or should i just put it on a shelf and be done with it?

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