An animatable floating-point property.
Inherits :
Inherited By : DzFloat2Property, DzFloat3Property and DzNumericNodeProperty
DAZ Script |
---|
DzFloatProperty () |
DzFloatProperty ( String name, Boolean canAnimate, Boolean isUserProperty, Number defaultVal=0.0 ) |
void | displayAsPercentChanged () |
TODO: Add detailed description.
Enumerated values for the type of interpolation to apply for a given key.
Since:
—–
TODO: Add description.
Default Constructor. Creates a non-animatable, non-user property.
DzFloatProperty( String name, Boolean canAnimate, Boolean isUserProperty, Number defaultVal=0.0 )
Parameter(s):
true
, creates an animatable property.true
, creates a user property; user properties are properties that can be added/deleted by users.void : add( Number val, Boolean applyToDefault=true )
Adds the given value to all the key values.
Parameter(s):
true
, val will also be added to the default value for the property.Number : adjustValue( Number val )
Adjust the value of the property based on the contribution of property controllers.
Parameter(s):
Return Value:
Number : adjustValue( DzTime tm, Number val )
Adjust the value of the property at the given time based on the contribution of property controllers.
Parameter(s):
Return Value:
void : divide( Number val, Boolean applyToDefault=true )
Divides all key values by the given amount.
Parameter(s):
true
, the default value for the property will also be divided.Return Value:
Boolean : getDisplayAsPercent()
Return Value:
true
if this property should be displayed as a percentage, false
if this property should be displayed as a decimal.Number : getKeyValue( Number i )
Parameter(s):
Return Value:
Number : getLocalValue()
This function is provided for the special case of ERC link redirection; sometimes called 'cross-talk'. For example, if Figure A (a piece of clothing, for example) is 'Fit To' Figure B, the ERC links on Figure A are redirected to follow channels on Figure B; this is how morphs on an item of clothing will follow morphs on the figure, etc. This function will provide the value of the property ignoring any redirection of ERC links. So, for a figure that is not 'Fit To' another figure, this will return the same value as getValue(). For a figure that is 'Fit To' another figure, this will return the value that the property would have if the ERC link had not been redirected.
Return Value:
Number : getLocalValue( DzTime tm )
This function is provided for the special case of ERC link redirection; sometimes called 'cross-talk'. For example, if Figure A (a piece of clothing, for example) is 'Fit To' Figure B, the ERC links on Figure A are redirected to follow channels on Figure B; this is how morphs on an item of clothing will follow morphs on the figure, etc. This function will provide the value of the property ignoring any redirection of ERC links. So, for a figure that is not 'Fit To' another figure, this will return the same value as getValue(). For a figure that is 'Fit To' another figure, this will return the value that the property would have if the ERC link had not been redirected.
Parameter(s):
Return Value:
Return Value:
Return Value:
Number : getRawValue()
This function is provided to make it easy to get the 'keyed' value of the property without any modifications. When the value of a property is evaluated, first the value based on key interpolation is calculated, that value is then passed to each of the controllers on the property (ERC links for example) which can modify that value. This modified value is then returned as the value of the property by getValue(). This function returns the value of the property before the application of the controllers; strictly the result of key interpolation.
Return Value:
Number : getRawValue( DzTime tm )
This function is provided to make it easy to get the 'keyed' value of the property without any modifications. When the value of a property is evaluated, first the value based on key interpolation is calculated, that value is then passed to each of the controllers on the property (ERC links for example) which can modify that value. This modified value is then returned as the value of the property by getValue(). This function returns the value of the property before the application of the controllers; strictly the result of key interpolation.
Parameter(s):
Return Value:
Number : getSensitivity()
Return Value:
TransformType : getTransformType()
Return Value:
Return Value:
Number : getValue( DzTime tm )
Parameter(s):
Return Value:
void : multiply( Number val, Boolean applyToDefault=true )
Multiplies all key values by the given amount.
Parameter(s):
true
, the default value for the property will also be multiplied.void : setDefaultValue( Number val )
Sets the default value for this property.
Parameter(s):
void : setDisplayAsPercent( Boolean onOff )
Sets whether this property should have its value displayed as a percentage; the default is false (value is displayed as a decimal).
void : setKeyValue( Number i, Number val )
Sets the value of the i'th key.
Parameter(s):
Set the maximum allowable value.
Parameter(s):
Set the mininimum allowable value.
Parameter(s):
void : setMinMax( Number min, Number max )
Set the mininimum and maximum allowable values.
Parameter(s):
void : setSensitivity( Number sens )
Set the sensitivity for this property. This value describes the amount of change in the value of this property caused by adjustment in the interface, especially if limits are off.
Parameter(s):
void : setTransformType( TransformType type )
Sets the transform type for this property.
Parameter(s):
void : setValue( DzTime tm, Number val, InterpolationType interp, Number param0, Number param1, Number param2 )
Sets the value for this property at the given time; or the default value if this property is not animatable.
Parameter(s):
Sets the value for this property at the current time; or the default value if this property is not animatable. This function differs from setRawValue() in that it takes into account any controllers on the property such that calling setValue( getValue() ) should not change the value of the property.
Parameter(s):
void : setValue( DzTime tm, Number val, InterpolationType interp )
Sets the value for this property at the given time; or the default value if this property is not animatable. This function differs from setRawValue() in that it takes into account any controllers on the property such that calling setValue( getValue() ) should not change the value of the property.
Parameter(s):
void : setValue( DzTime tm, Number val )
Sets the value for this property at the given time; or the default value if this property is not animatable. This function differs from setRawValue() in that it takes into account any controllers on the property such that calling setValue( getValue() ) should not change the value of the property.
Parameter(s):
void : subtract( Number val, Boolean applyToDefault=true )
Subtracts the given value to all the key values.
Parameter(s):
true
, val will also be subtracted from the default value for the property.void : displayAsPercentChanged()
Signature:“displayAsPercentChanged()”
Emitted if the way this property is displayed changed.