Notifications
Clear all

[Closed] CAT hand control script. Can anyone take a look?

Hi guys, I’m sharing a script I’ve made to create sliders and connect them with CAT.

It seems to be working good, I’m not very experient max scripter, so the code must be very ugly. Then I think it would be great if some more experienced scripters could take a look at my code and give me some tips and also report any bug you may find.

Here is the download link:
http://dl.dropbox.com/u/66009530/scripts/CAT_hand_ctrl_04.ms

Any comment is very welcome.

Best regards,

Flavio

ps: sorry for the comments in portuguese inside, I’ve just translated the UI part of the code.

ps2: here’s a screenshot, just in case:

9 Replies

No one?

:shrug:

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

i’ve tried to run the script but it says “This script need a hand with 5 fingers to work”… i have two hands and 10 fingers all together, and they work well. but it doesn’t need my fingers
you can make the life easier for anyone who wants to play with your script by providing a sample max file.

LOL, ok, thanks for the feedback.

Here is a sample file as requested, max 2012 PU10, saved as 2010. Just select a hand and run the script:
http://dl.dropbox.com/u/66009530/scripts/CAT_test_base_human.max

Thanks for your time.

Flavio

I’ve looked at the tool…

I’m more than 15 years in animation and can say for sure that all animators don’t like any rig that allows only GUI based way of animating (like your tool). GUI control for animating can be an extra feature. But it shouldn’t replace or conflict with simple way of animation by using transform gizmos.
Another thing is the GUI of your tool is too big. Almost all the time it needs all rollouts be opened. The scrolling is not a solution because it slows down the animating process.

Your setup might be useful for making poses but it’s too heavy for in-view animation.

That’s my opinion. Sorry, I wouldn’t not use this rig and this tool.
But I wish you to find your user!

Flávio,
i didn’t want to disappoint you. many of my tools were ignored by user for any reason. but it made me stronger. you are in mxs scripter branch of this forum. would you like to hear any comment about your code with no matter what it is doing?

Hey Denis, don’t worry about it, its good to hear this kind of feedback, even if it sounds a bit harsh, I always value the opinions from more experienced guys like you, so first I have to thank you for taking a look and giving me your opinion.

I work at an university here in Brazil and made this tool as a request from students that used to have this kind of GUI control in custom made rigs and wanted to have the same thing for CAT but was having a hard time making it work with the animation layers, so I took as a challenge since I’m not an experienced maxscripter.

And you got the point, it would be great if you could give me some tips to improve my coding, that’s why I posted it here.

Thanks for your time and I’m glad you’re giving me your opinion.

Cheers!

Flavio

I just discovered a big flaw in my script: the buttons call some functions and variables that are outside the button scope, so if I open and close max they no longer work unless I run the script again.

So I need a suggestion about the best approach, I was wondering about two options:

  1. a “initialize button” that declare all the variables and functions or
  2. put everything under the buttons scope, or
  3. any other suggestion

As I said to denis, I’m posting it here to try to improve my maxscript skills, even though it is not very usefull as a tool.

Cheers!

Flavio

Just figure out the problem and put the variables and functions inside the CA.

If anyone is interested here is the updated version, needs PEN Attribute Holder to work now:
http://dl.dropbox.com/u/66009530/scripts/CAT_hand_ctrl_05_PEN_Attribute_holder.ms

As DenisT said, that’s not a very useful tool, but I would like to hear comments about how I could improve my scripting skills.

Cheers!

Flavio

Well if you dont think its useful tool, make it one. Denis said he didnt use that time of spinner UI and I agree it’s a trifle clumsy…why not construct a spline based UI in the viewoort…pose ibrary etc…think of better ways to make it user friendly, then figure out the script you need… yes, placing data on the CA is good, but what if you want to place whole arrays of dta on it? There is a way, but its not taht obvious.good luck.