Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 23-07-2004, 05:03 PM   #1
Mr_Skinner
Registered User
 
Join Date: Apr 2004
Location: Leamington Spa, Uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!

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.

Any help appreciated,

Yours Truely....
Shittest Coder out there
Mr_Skinner is offline   Reply With Quote
Old 23-07-2004, 05:27 PM   #2
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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
Alan is offline   Reply With Quote
Old 23-07-2004, 06:06 PM   #3
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Talking mwahahahaha

How about this one: jointCountHUD.zip

__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
Old 23-07-2004, 06:20 PM   #4
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

:p bet it does the same thing

__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 27-07-2004, 10:18 AM   #5
Mr_Skinner
Registered User
 
Join Date: Apr 2004
Location: Leamington Spa, Uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

WOW you guys are cool!
The script looked alot like the one i badgered together, but yours worked!

Works like a charm!
Cheers guys, appreciated.

Jimbo

one more thing if you dont mind....

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?
Mr_Skinner is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.