motion point

Used for motion point operations.


xshade
shape
motion
motion_point

List of Methods

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

List of Properties

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.

Method Details

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)

Property Details

bank

The bank.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).bank

corner

Corner on/off.

  • Get
  • Set

Type :
  bool

print xshade.scene().active_shape().motion.get_motion_point(0).corner

distance

The distance from the eye point to the target point.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).distance

film_shift

Film shift.

  • Get
  • Set

Type :
  float2

print xshade.scene().active_shape().motion.get_motion_point(0).film_shift

film_tilt

Film tilt.

  • Get
  • Set

Type :
  float2

print xshade.scene().active_shape().motion.get_motion_point(0).film_tilt

focal_point

The focal point.

  • Get
  • Set

Type :
  vec3

print xshade.scene().active_shape().motion.get_motion_point(0).focal_point

focal_value

The depth of field parameter.

  • Get
  • Set

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.

  • Get
  • Set

Type :
  int

print xshade.scene().active_shape().motion.get_motion_point(0).keyframe_index

lens_tilt

Lens tilt.

  • Get
  • Set

Type :
  float2

print xshade.scene().active_shape().motion.get_motion_point(0).lens_tilt

offset

Offset.

  • Get
  • Set

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.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).parallel

perspective_correction

Perspective correction.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).perspective_correction

rotation

Rotation.

  • Get
  • Set

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.

  • Get
  • Set

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.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).sequence

shift

Shift.

  • Get
  • Set

Type :
  float2

print xshade.scene().active_shape().motion.get_motion_point(0).shift

slow_in

Slow in.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).slow_in

slow_out

Slow out.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).slow_out

value

The joint value.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).value

zoom

Zoom.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().motion.get_motion_point(0).zoom