ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Submitted by mario vergara on Fri, 2009-10-30 07:51
Hi guys!
I've been trying to make a camera create a spline when i move it ....in other words the idea is to make the camera behave like a pencil that draws a spline...
Ok Mario I understood! I'm busy right now and I don't know if I have to time to write a script.. I'm afraid that you have to work with a different method such mine. I'll try to find some time but I can promised it. Except frome the path.. have you thought about cameras orientation? Do you care or you just need the position.
Hello Christopher.. If I understood right from his last post, Mario's problem has to do with the time.. He needs unlimited time and no clean up.
-move the camera with the move tool and keybord arrows
-max generates a list of points with x-y-z values
-the points are connected with a spline when the user hits enter
-i guess it could be like, function move tool calls function create spline, when the camera-line objects is moved from a to b, a x-y-z point is generated....enter to finish translation of the camera...create spline from list.
Have you given sinok's suggestion a try? It seems to me his suggestion is exactly what you're looking for. You'd be able to fly around your model using the keyboard / mouse and when you're done get a spline representing where the camera and/or target were.
either with move tool or if you want something more interactive he can use the "walk through" mode. To work with the walk through mode here are some tips/workflow.
1) Create a camera.
2) Go to the "Time Configuration" panel and setup your range (you will probably need a lot of keys). Press ok
3) Set Auto key on
4) When you're ready press "/" on your keyboard or "play". (by doing this you are start recording).
5) Use the arrow keys and the mouse to navigate.
6) when done press "/" again or "Pause" and thurn of Autokey.
7) Open the curve editor and clean the target's position keys (cause mouse movements are a bit fast for the playback).
Now, if you want to have the spline from that movement.. please read my previews post.
Comments
Ok Mario I understood! I'm
Ok Mario I understood! I'm busy right now and I don't know if I have to time to write a script.. I'm afraid that you have to work with a different method such mine. I'll try to find some time but I can promised it. Except frome the path.. have you thought about cameras orientation? Do you care or you just need the position.
Hello Christopher.. If I understood right from his last post, Mario's problem has to do with the time.. He needs unlimited time and no clean up.
sinok.gr
-create camera -move the
-create camera
-move the camera with the move tool and keybord arrows
-max generates a list of points with x-y-z values
-the points are connected with a spline when the user hits enter
-i guess it could be like, function move tool calls function create spline, when the camera-line objects is moved from a to b, a x-y-z point is generated....enter to finish translation of the camera...create spline from list.
-no keyframing
i hoipe is a bit more clear....
Have you given sinok's
Have you given sinok's suggestion a try? It seems to me his suggestion is exactly what you're looking for. You'd be able to fly around your model using the keyboard / mouse and when you're done get a spline representing where the camera and/or target were.
ooops sorry attach
ooops sorry
attach
still can't see what you
still can't see what you mean..
sinok.gr
Thanks again
Thanks again guys!
@Sirok.
Yes, but time would not be a parameter to consider.
The idea is to attack the line tool to the camera´s pivot point
@le1setreter
movetool in one of the viewports
Can you please rephrase this
Can you please rephrase this "The idea is to attack the line tool to the camera´s pivot point" cause I can't understand what you want to say.
sinok.gr
>> while freely moving on
>> while freely moving on the scene
how will the user move/change the camera? movetool in one of the viewports?
either with move tool or if
either with move tool or if you want something more interactive he can use the "walk through" mode. To work with the walk through mode here are some tips/workflow.
1) Create a camera.
2) Go to the "Time Configuration" panel and setup your range (you will probably need a lot of keys). Press ok
3) Set Auto key on
4) When you're ready press "/" on your keyboard or "play". (by doing this you are start recording).
5) Use the arrow keys and the mouse to navigate.
6) when done press "/" again or "Pause" and thurn of Autokey.
7) Open the curve editor and clean the target's position keys (cause mouse movements are a bit fast for the playback).
Now, if you want to have the spline from that movement.. please read my previews post.
cheers
sinok.gr
Hi sinok.... thanks for
Hi sinok....
thanks for taking the time.
Your explanation referes to a regular animation of a camera on a spline.
That is clear.
But i want to do it the other way around.
1-create a camera
2-move the camera so it generates a spline
3-so afterwards i get a plan view of the path the user generated while freely moving on the scene.
4- i dont need to previusly tell the user where to go....but i need the user to tell me where he went.
hope its kind of clear.
thanks again.
best
m