Replay operator helpers
GetReplayOperatorByNamealso takes four C#outparameters for the frame-store window, the frame count and the playback state. A script must pass a placeholder for each, such asnull, or the call fails, and it cannot read what is written to them. Read those values from the returned operator withGetObjectPropertyinstead:var op = Project.GetReplayOperatorByName("Scene", "Layer", "Replay", null, null, null, null); var frames = Project.GetObjectProperty(op, "NumberOfFramesInStorage");
| Function | Returns | Description |
|---|---|---|
GetReplayOperatorByName(sceneName: string, layerName: string, operatorName: string) |
AbstractOperator or null |
Looks up a ReplayOperator by scene/layer/operator name. On success, also returns the current frame-store window, frame count, and playback state via the out parameters. Returns the operator, or null if any lookup fails. Concrete ReplayOperator members are reached from script with GetObjectProperty / CallObjectFunction. |
StartReplayOperatorByName(sceneName: string, layerName: string, operatorName: string, startDateTime: DateTime, stopDateTime: DateTime) |
bool |
Starts replay playback on the named operator over the given time window. Returns false if the operator is not a ReplayOperator, or if it is already playing back. |
GetReplayOperatorPlaybackStoppedByName(sceneName: string, layerName: string, operatorName: string) |
bool |
Returns true when the named replay operator is not currently in Playback. Returns false if the operator is missing or is not a ReplayOperator. |