Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Controller on/off switch?
show user profile  JeffP

Is it possible to create an on/off switch based on a translation?

I have a cube rotating in Z,
When this cube translates in Y: it stops the rotation.
When translation stops, to resume its rotation.

I've set up controller limits before, but am uncertain to using this kind of function.
Any ideas?

read 297 times
12/26/2013 11:20:40 PM (last edit: 12/26/2013 11:20:40 PM)
show user profile  Mr_Stabby
possibly, the easiest option i can think of is to
create 3 helpers
link 2 of the helpers to the third helper
add spring constrait to one of the slave helpers, set effect scaling to 0 on all but y and make it damp so it would trail behind but wouldn't wobble after movement stops
link the cube to the other slave helper
animate the translations on the master helper and add constant rotation (reaction)
add a script controller to the cubes rotation that would measure the distance between the master helper and the spring helper, if the distance is big enough(some tiny amount bigger than 0 to avoid rounding errors)) then produce 0,0,0 if the distance is not big enough then produce inverse parenttransform * masterhelpertransform matrices rotation

wait no, the easiest option is just to animate it

read 269 times
12/27/2013 2:59:15 AM (last edit: 12/27/2013 3:00:29 AM)
show user profile  JeffP
Thanks for the detailed outline!

Your method could be a work around, yet I imagine there should be a more simpler approach .. just not sure how.

Either way, after countless attempts, i may have found an alternative to achieve the desired results, bypassing controllers altogether.

thanks again!

read 255 times
12/27/2013 7:29:21 AM (last edit: 12/27/2013 7:29:21 AM)
#Maxforums IRC
Open chat window