RenderSchedule.Script Class

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

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

Methods

Name Description
constructor(props: undefined): 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): undefined | RenderSchedule.Script Static    

Properties

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 undefined Timelines specifying how to animate individual models within the view.  

Defined in

Last Updated: 16 April, 2024