RenderSchedule.Script Class

Specifies how to animate the contents of a ViewState over time. The script contains any number of ModelTimelines, each describing how to animate one of the models in the view.

@see - RenderTimeline to create an Element to host a script.


Name Description
constructor(props: ): RenderSchedule.Script Protected    
compareTo(other: RenderSchedule.Script): number    
equals(other: RenderSchedule.Script): boolean    
find(modelId: string): undefined | RenderSchedule.ModelTimeline Look up the timeline that animates the specified model, if any.  
toJSON(): RenderSchedule.ScriptProps    
fromJSON(props: ): undefined | RenderSchedule.Script Static    


Name Type Description
containsFeatureOverrides Readonly boolean True if this script affects the color or transparency of the geometry.  
containsModelClipping Readonly boolean True if this script applies clipping to any models.  
containsTransform Readonly boolean True if this script affects the position, orientation, or scale of the geometry.  
duration Readonly Range1d The total time period over which this script animates.  
modelTimelines Readonly Timelines specifying how to animate individual models within the view.  

Defined in

Last Updated: 13 June, 2024