When Ripple Edit Mode is enabled, neighboring shots to the shot that gets manipulated are moved in sequence time to either make way or close up gaps corresponding to that node’s editing. Given some parameters about the shot edit that just took place, this command will choose which other shots to move, and move them the appropriate amounts If no shot name is provided, the command will attempt to use the first selected shot. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
deleted (d) | bool | ||
Specify whether this ripple edit is due to a shot deletionFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
endDelta (ed) | time | ||
|
|||
endTime (et) | time | ||
|
|||
startDelta (sd) | time | ||
|
|||
startTime (st) | time | ||
|
Derived from mel command maya.cmds.shotRipple
Example:
import pymel.core as pm
// A shot initially starting at sequence time 0 was edited to start 10 frames later.
// adjust the rest of the shots accordingly
pm.shotRipple(shotName, startTime=0, startDelta=10)
// A shot initially ending at frame 10 was edited to start 5 frames earlier.
// adjust the rest of the shots accordingly
pm.shotRipple(shotName, endTime=10, endDelta=-5)
// A shot starting at frame 10 and ending at frame 20 was just deleted
// adjust the rest of the shots accordingly (if necessary)
pm.shotRipple(shotName, delete=1,startTime=10,endTime=20)