User Tools

Site Tools


DzBoolProperty

An animatable boolean property.

More...

Inherits :

Constructors

DAZ Script
DzBoolProperty ()
DzBoolProperty ( String name, Boolean canAnimate, Boolean isUserProperty, Boolean initVal=true )

Methods

Detailed Description

This class provides an animatable boolean property that is stored and can be accessed as an integer property. The integer value 0 is false, any other integer value is true.

Constructors


DzBoolProperty()

Default Constructor. Creates a non-animatable, non-user property.


DzBoolProperty( String name, Boolean canAnimate, Boolean isUserProperty, Boolean initVal=true )

Overloaded constructor.

Parameter(s):

  • name - The name of this property.
  • canAnimate - If true, creates an animatable property.
  • isUserProperty - If true, creates a user property; user properties are properties that can be added/deleted by users.
  • initVal - Sets the default value of the property.

Methods


Boolean : getBoolValue()

Return Value:

  • The boolean value of the property at the current time.

Boolean : getDefaultBoolValue()

Return Value:

  • The default boolean value of the property.

void : setBoolValue( Boolean value )

Sets the boolean value for this property at the current time - or the default value if this property is not animatable.

Parameter(s):

  • val - The new value for the property.

void : setDefaultBoolValue( Boolean val )

Sets the default boolean value for this property.

Parameter(s):

  • val - The new default value for the property.