Used for motion point operations.
xshade |
↑ |
shape |
↑ |
motion |
↑ |
motion_point |
delete | Deletes the first motion point |
get_scalar | Returns the scalar value of the specified number |
select | Selects a motion point |
set_scalar | Sets the scalar value of the specified number |
bank | The orientation |
corner | Corner on/off |
distance | The distance from the eye point to the target point |
film_shift | Film shift |
film_tilt | Film tilt |
focal_point | The focal point |
focal_value | The depth of field parameter |
keyframe_index | The index of the keyframe to which the motion point is dependent |
lens_tilt | Lens tilt |
offset | Offset |
parallel | Parallel translation |
perspective_correction | Perspective correction |
rotation | The rotation |
scale | The camera scale |
sequence | The sequence cursor |
shift | The shift |
slow_in | Slow in |
slow_out | Slow out |
value | The joint value |
zoom | Zoom |
Used after getting a motion point with a method such as xshade.scene().active_shape().motion.get_motion_point(0).
If an index that does not exist is used, Shade may crash.
delete
Deletes the first motion point.
xshade.scene().active_shape().motion.get_motion_point(0).delete()
get_scalar
Returns the scalar value of the specified number.
Return value :
float
Arguments :
int : The index number
The scalar value is the joint value, etc.
Normal joints have an index number of 0 only.
For objects such as cameras that have multiple indexes, such as shift values, the scalar value can be gotten with that index number.
See also :
set_scalar
#Return the scalar value of index 0
xshade.scene().active_shape().motion.get_motion_point(0).get_scalar(0)
set_scalar
Sets the scalar value of the specified number.
Arguments :
int : The index number
Arguments :
float : The scalar value
Normal joints have an index number of 0 only.
For objects such as cameras that have multiple indexes, such as shift values, the scalar value can be set with that index number.
See also :
get_scalar
#Set 0.5 to index 0
xshade.scene().active_shape().motion.get_motion_point(0).set_scalar(0, 0.5)
bank
The bank.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).bank
corner
Corner on/off.
Type :
bool
print xshade.scene().active_shape().motion.get_motion_point(0).corner
distance
The distance from the eye point to the target point.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).distance
film_shift
Film shift.
Type :
float2
print xshade.scene().active_shape().motion.get_motion_point(0).film_shift
film_tilt
Film tilt.
Type :
float2
print xshade.scene().active_shape().motion.get_motion_point(0).film_tilt
focal_point
The focal point.
Type :
vec3
print xshade.scene().active_shape().motion.get_motion_point(0).focal_point
focal_value
The depth of field parameter.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).focal_value
keyframe_index
The index of the keyframe to which the motion point is dependent.
Type :
int
print xshade.scene().active_shape().motion.get_motion_point(0).keyframe_index
lens_tilt
Lens tilt.
Type :
float2
print xshade.scene().active_shape().motion.get_motion_point(0).lens_tilt
offset
Offset.
Type :
float
Retains the ball joint or object camera offset translation.
print xshade.scene().active_shape().motion.get_motion_point(0).offset
parallel
Parallel translation.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).parallel
perspective_correction
Perspective correction.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).perspective_correction
rotation
Rotation.
Type :
quaternion
Retains the ball joint rotation or object camera orientation in quaternion.
print xshade.scene().active_shape().motion.get_motion_point(0).rotation
scale
The camera scale.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).scale
select
Selects a motion point.
Arguments :
int : The index number of the motion point
#Select index 0
xshade.scene().active_shape().motion.get_motion_point(0).select
sequence
The sequence cursor.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).sequence
shift
Shift.
Type :
float2
print xshade.scene().active_shape().motion.get_motion_point(0).shift
slow_in
Slow in.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).slow_in
slow_out
Slow out.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).slow_out
value
The joint value.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).value
zoom
Zoom.
Type :
float
print xshade.scene().active_shape().motion.get_motion_point(0).zoom