Dist ance Functions

ctr_dist(<elem1>,<elem2>)

The Center to Center (ctr_dist) token returns the distance between the centers of two objects. The element arguments represent the objects’ names, ending in a period. For example, this expression returns the distance between cone and sphere (which is a child of ModelX):

       ctr_dist(cone., ModelX.sphere.)

| You may need to change frames to update the scene.

ctr_dist_cam(<elem1>)

The To Camera (ctr_dist_cam) token returns the distance between the center of an object and the output camera. The element argument represents the object’s name, ending in a period. For example, this expression returns the distance between cone and the default camera:

       ctr_dist_cam(cone.)

| You may need to change frames to update the scene if you move the camera interactively. This token works only with the output camera. If you have changed the output camera from the default, you may need to force a refresh to see an update (by changing frames). You can also use Center to Center with the explicit camera name.

ctr_dist_cam_int(<elem1>)

The To Camera Interest (ctr_dist_cam_int) token returns the distance between the center of an object and the interest of the output. The element argument represents the object’s name, ending in a period. For example, this expression returns the distance between cone and the default camera interest:

       ctr_dist_cam_int(cone.)

| You may need to change frames to update the scene if you move the camera interactively. This token works only with the output camera. If you have changed the output camera from the default, you may need to force a refresh to see an update (by changing frames). You can also use Center to Center with the explicit camera name.

ease_in(<start frame>,<end frame>,<interp>)

The Ease In (ease_in) token generates a ramp from 0 to 1 between the start and end frames. This function can be combined with other operations to create ramps between any two numbers. Arguments include:

Argument | Description
    <start frame>
| Expression for the start frame of the ramp. The value is 0 before this frame.
    <end frame>
| Expression for the end frame of the ramp. The value is 1 after this frame.
    <interp>
| Interpolation between <start frame> and <end frame>. This can be one of the interpolation constants: • LinearInterp for Linear Interpolation • SplineInterp for spline (curved) interpolation

ease_out(<start frame>,<end frame>,<interp>)

The Ease Out (ease_out) token generates a ramp from 1 to 0 between the start and end frames. You can then combine this function with other operations to create ramps between any two numbers. Arguments include:

Argument | Description
    <start frame>
| Expression for the start frame of the ramp. The value is 1 before this frame.
    <end frame>
| Expression for the end frame of the ramp. The value is 0 after this frame.
    <interp>
| Interpolation between <start frame> and <end frame>. This can be one of the interpolation constants: • LinearInterp for Linear Interpolation • SplineInterp for spline (curved) interpolation

Autodesk Softimage v7.5