VisualizationBehaviour
- class Varwin.VisualizationBehaviour
Bases:
object- class PlayableState
Bases:
object- Stop: Any = Ellipsis
- Pause: Any = Ellipsis
- Continue: Any = Ellipsis
- class ShadowCastingMode
Bases:
object- Off: Any = Ellipsis
- On: Any = Ellipsis
- TwoSided: Any = Ellipsis
- ShadowsOnly: Any = Ellipsis
- ChangeObjectColor(color: Color) None
Instantly changes the object’s color to the selected color. If you use the block with an object that has textures, the block will give it the selected hue.
Example:
instance.VisualizationBehaviour.ChangeObjectColor(Varwin.Color(1,1,0,1))
- async ChangeColorOverTime(color: Color, time: float) None
Starts changing the object’s color to the selected color for the specified amount of time. If you use the block with an object that has textures, the block will give it the selected hue.
Example:
await instance.VisualizationBehaviour.ChangeColorOverTime(Varwin.Color(1,1,0,1), 0)
- SetChangingColorState(state: int) None
Controls any color changing. A paused color changing can be continued with the corresponding block.
- Parameters:
(int) (state) –
value from the list
Varwin.VisualizationBehaviour.PlayableState.Stop (int)
Varwin.VisualizationBehaviour.PlayableState.Pause (int)
Varwin.VisualizationBehaviour.PlayableState.Continue (int)
Example:
instance.VisualizationBehaviour.SetChangingColorState(Varwin.VisualizationBehaviour.PlayableState.Stop)
- IsColorChangingNow() bool
Returns true if the specified object is currently changing color. Otherwise it returns false
Example:
result = instance.VisualizationBehaviour.IsColorChangingNow()