pymel.core.animation.snapshot

snapshot(*args, **kwargs)

This command can be used to create either a series of surfaces evaluated at the times specified by the command flags, or a motion trail displaying the trajectory of the object’s pivot point at the times specified.If the constructionHistory flag is true, the output shapes or motion trail will re-update when modifications are made to the animation or construction history of the original shape. When construction history is used, the forceUpdate flag can be set to false to control when the snapshot recomputes, which will typically improve performance.

Flags:
  • constructionHistory : ch (bool) [create,query]

    update with changes to original geometry

  • endTime : et (time) [create,query,edit]

    time to stop copying target geometry Default: 10.0

  • increment : i (time) [create,query,edit]

    time increment between copies Default: 1.0

  • motionTrail : mt (bool) [create]

    Rather than create a series of surfaces, create a motion trail displaying the location of the object’s pivot point at the specified time steps. Default is false. Flag can have multiple arguments, passed either as a tuple or a list.

  • name : n (unicode) [create,query,edit]

    the name of the snapshot node. Query returns string.

  • startTime : st (time) [create,query,edit]

    time to begin copying target geometry Default: 1.0

  • update : u (unicode) [create,query,edit]

    This flag can only be used if the snapshot has constructionHistory. It sets the snapshot node’s update value. The update value controls whether the snapshot updates on demand (most efficient), when keyframes change (efficient), or whenever any history changes (least efficient). Valid values are demand, animCurve, always. Default: always

Derived from mel command maya.cmds.snapshot

Previous topic

pymel.core.animation.snapKey

Next topic

pymel.core.animation.softMod

Core

Core Modules

Other Modules

This Page