PDA

View Full Version : spinners like in Maya


juako
02-22-2007, 02:38 AM
somebody knows how to make spinners work like the ones in Maya, the ones you can select more than one and when you move and click , all the spinners change their values.

i made some tests with check buttons but i cant make that the values increase when the mouse right button is down .

OK i going to try

rdg
02-22-2007, 07:03 AM
Maybe you could use the search function, as this topic is already covered to some extend in this forum. maybe this forum needs a faq thread. maybe.

To link two sliders via maxScript you have to update the 'slaves' in the 'master' handle:


[...]

spinner spn_1 "Master" range:[0,10,1] type:#integer
spinner spn_2 "Slave" range:[0,10,1] type:#integer

on spn_1 changed val do (
[...]
spn_2.value = val -- if you want a 1:1 ratio
)

[...]



Alternatively you can check for a checkbox state inside the handler, if the Master realy controls the Slave.

I don't think that the right-mouse-button aproach is valid in max ... haven't tried it.
Maybe I should take a look at maya some day.

Georg

juako
02-23-2007, 01:01 AM
thanks rdg , i will try the code
it would be really helpful to have a faq threat or a recompilation of all the info

rdg
02-23-2007, 08:35 AM
there were some tries to have faq threads ...
I guess we should use the wiki.
But I don't like wikis - don't know why.

Georg

CGTalk Moderation
02-23-2007, 08:35 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.