PDA

View Full Version : a couple of quick animation maxscript Q's


pete
07-06-2005, 02:59 AM
Hi there,
I am naf at Maxscript so mock me if you will... I've been trying to make a few buttons for things that I use regularly while animating and most of the time it's ok because they come up in the listener but sometimes they don't. Like for instance the trackbar filters and I am constantly changing these things. So I was wondering if anyone could tell me how to make a script that would switch to another filter. Like object or current transform or something.
In the help they say to use - trackbar.fiter with these options #all #TMonly #Current #object or #mat But I can't figure out how to string them together.
If anyone could help it would be much appreciated.
Pete

Impus
07-06-2005, 05:40 AM
try:

trackbar.filter = #all
trackbar.filter = #TMOnly
trackbar.filter = #currentTM
trackbar.filter = #object
trackbar.filter = #mat

rdg
07-06-2005, 05:49 AM
Impus was faster :)

tbar = maxops.trackbar
tbar.filter=#mat

But I can't fin how enumerations work, so you can choose multiple options.
Maybe someone can explain this?

edit: never mind, i missunderstood enumeration.

Georg

pete
07-06-2005, 07:32 AM
Thanks man that worked a treat and now I have a nice little floater. Cheers you rock !!!

CGTalk Moderation
07-06-2005, 07:32 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.