Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   JointCounter Script? (https://simplymaya.com/forum/showthread.php?t=12724)

Mr_Skinner 23-07-2004 04:03 PM

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

Alan 23-07-2004 04:27 PM

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

dannyngan 23-07-2004 05:06 PM

mwahahahaha
 
How about this one: jointCountHUD.zip

:D

Alan 23-07-2004 05:20 PM

:p bet it does the same thing :ninja:

:D

Mr_Skinner 27-07-2004 09:18 AM

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?


All times are GMT. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018