Accueil

 
.

Script : See trajectory of objects and modify it.

 

You can download the script here (for 2.37) or here (for 2.40)

Aim of script :

It allow you to see trajectory of selected object (and more object if you want). Besides when trajectory become red, you can modify it. In fact, the script

How to use script :

1. Launch script with Alt+P (once the script is imported in Blender) or Put it in .blender/scripts/ folder and follow the instructions:

Open Scripts Window area

Open in scripts menu>> Animation >>"Trajectory"

Note : if you want that not only active object have its trajectory shown, before launch script, select all objects you want to have their trajectory shown.

2. Script ask you if you want that currently selected object have always its trajectory shown.
If you select Yes : trajectory of currently selected objects will be always drawn in 3DView (in addition of active object trajectory).
If you select No : the script will only draw trajectory of objects that you select (and don't draw it when object isn't selected.

3. Script ask you how many frames in the futur (origin at current frame) you want the trajectory represents.

and how many in past :

4. Script ask you the width of trajectories drawn (in pixel):

(1 is very fine and 4 very large)

>> The script is configure, now if you select an object that already have an IPO, its trajectory will be drawn.

But this script allow to do another thing !!!

1. In normal mode trajectory is blue (most dark in pas and lighten in futur).
If you move your object, it doesn't change trajectory (you must insert a keyframe for change trajectory and fix object at current frame)

But if current frame is a keyframe, trajectory becomes red, and you can modify trajectory. Script automaticly update ipo's curves.

There is no keyframe : trajectory is blue
If you move object nothing happens
There is a keyframe : trajectory is red and if you move object, trajectory follow object.
There is only a key frame for 1 of 3 curves of location, trajectory is between red and blue (more red if there is a keyframe for 2 of 3 curves locations.

NOTE : If you want to modify trajectory when it is blue, just press I-Key >> loc.

The reason why script doesn't able to modify trajectory for each frame is that create to much keyframe make trajectory difficult to modify.
So the solution of semi-autokeyframe is better.

Script supports parenting objects (with or without ipo). The more parent there is the slower the script is.

 

For problems contact me : r3gis