SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / JointCounter Script?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 23-07-2004, 04: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, 04: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, 05: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, 05: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, 09: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.