3DS MAX: 3ds Max Forum 3ds Max Tutorials

how to trigger animation in object1 whenever it is moved near object2

COW Forums : Autodesk 3ds Max

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
John Blakehow to trigger animation in object1 whenever it is moved near object2
by on Mar 12, 2013 at 8:59:29 pm

Hi All,

I am trying to animate the rotation of an object whenever it comes close to another object.

For example object 1 is the needle of a compass, I want it to point straight up whenever it comes close to object 2 (a magnet).

I need this to work regardless of where these objects are in world space.
The only thing that matters is that they be next to each other; i.e. just like a real compass and a real magnet.

I’ve been teaching myself 3DS Max for several months and this is the first time that I can’t find the answer to a problem online. I think it’s because I don’t know how to word the question.

I thought maybe I need a proximity sensor but I can’t find any good tutorials on that.

Can someone please lend a hand?

Thanks in advance.
John


Return to posts index

Joseph W. BourkeRe: how to trigger animation in object1 whenever it is moved near object2
by on Mar 13, 2013 at 1:40:07 am

Although I can't tell you exactly how to do it, I think your best bet will be to write a Maxscript which responds to the distance of object 1 to object 2. The gist of it would be the closer the object gets, the more the needle responds; I found a Maxscript discussion which uses proximity to trigger radius size:
http://www.maxforums.org/threads/maxscript_distance_detection/0001.aspx

Maybe you can alter it to trigger rotation of the needle, or make the needle "look at" the object. Good luck...

Joe Bourke
Owner/Creative Director
Bourke Media
http://www.bourkemedia.com


Return to posts index

John BlakeRe: how to trigger animation in object1 whenever it is moved near object2
by on Mar 13, 2013 at 2:54:29 am

It's hard to believe with all the animation hooks that they put in there that there's not something already available...Thanks Joe. So I gotta write a script? Hmmmm.


Return to posts index


Joseph W. BourkeRe: how to trigger animation in object1 whenever it is moved near object2
by on Mar 13, 2013 at 1:21:34 pm

Hi John -

There's so much capability in Max that I can't say for sure whether there isn't something there. I just haven't run across the need for it. I know for sure that there are some capabilities of that sort in the particle system. I just had a thought - why not just use the Gravity Space Warp. You can set it up a number of ways, and keyframe the strength. That should do the trick.

By the way - I don't know what version of Max you have, but here's good site for free plugins, many of which will do, or improve upon, stuff that Max already does:

http://www.maxplugins.de/max2012.php?range=Spacewarp&bit=64&sort=Date

There's also Scriptspot, a great source for free scripts:

http://www.scriptspot.com/3ds-max

If Max doesn't do it already, you can be sure someone has created a way to get it done...

Joe Bourke
Owner/Creative Director
Bourke Media
http://www.bourkemedia.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]