An animatable integer property with 2 values.
Inherits :
DAZ Script |
---|
DzInt2Property () |
DzInt2Property ( String name, Boolean canAnimate, Boolean isUserProperty, DzInt2 defaultVal ) |
DzInt2Property ( String name, Boolean canAnimate, Boolean isUserProperty ) |
DAZ Script | |
---|---|
DzInt2 | adjustInt2Value ( DzInt2 val ) |
DzInt2 | adjustInt2Value ( DzTime tm, DzInt2 val ) |
DzInt2 | getDefaultInt2Value () |
DzInt2 | getInt2FollowValue () |
DzInt2 | getInt2FollowValue ( DzTime tm ) |
DzInt2 | getInt2Value () |
DzInt2 | getInt2Value ( DzTime tm ) |
DzInt2 | getKeyInt2Value ( Number i ) |
DzInt2 | getLocalInt2Value () |
DzInt2 | getLocalInt2Value ( DzTime tm ) |
DzInt2 | getRawInt2Value ( DzTime tm ) |
DzInt2 | getRawInt2Value () |
void | setDefaultInt2Value ( DzInt2 val ) |
void | setInt2Value ( DzInt2 val ) |
void | setInt2Value ( DzTime tm, DzInt2 val ) |
void | setKeyInt2Value ( Number i, DzInt2 val ) |
void | setRawInt2Value ( DzInt2 val ) |
void | setRawInt2Value ( DzTime tm, DzInt2 val ) |
This class provides an animatable integer property with 2 values that is stored and can be accessed as a DzInt2.
Since:
Default Constructor. Creates a non-animatable, non-user property.
DzInt2Property( String name, Boolean canAnimate, Boolean isUserProperty, DzInt2 defaultVal )
Parameter(s):
true
, creates an animatable property.true
, creates a user property; user properties are properties that can be added/deleted by users.DzInt2Property( String name, Boolean canAnimate, Boolean isUserProperty )
Parameter(s):
true
, creates an animatable property.true
, creates a user property; user properties are properties that can be added/deleted by users.DzInt2 : adjustInt2Value( DzInt2 val )
Adjust the value of the property based on the contribution of property controllers.
Parameter(s):
Return Value:
DzInt2 : adjustInt2Value( DzTime tm, DzInt2 val )
Adjust the value of the property at the given time based on the contribution of property controllers.
Parameter(s):
Return Value:
DzInt2 : getDefaultInt2Value()
Return Value:
Return Value:
DzInt2 : getInt2FollowValue( DzTime tm )
Parameter(s):
Return Value:
tm
. If no auto-follow property is set, or auto-follow is not enabled for this property, then this method returns 0.DzInt2 : getInt2Value()
Return Value:
DzInt2 : getInt2Value( DzTime tm )
Parameter(s):
Return Value:
DzInt2 : getKeyInt2Value( Number i )
Parameter(s):
Return Value:
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:
DzInt2 : getLocalInt2Value( 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:
DzInt2 : getRawInt2Value( 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 getInt2Value(). This function returns the value of the property before the application of the controllers; strictly the result of key interpolation.
Parameter(s):
Return Value:
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 getInt2Value(). This function returns the value of the property before the application of the controllers; strictly the result of key interpolation.
Return Value:
void : setDefaultInt2Value( DzInt2 val )
Sets the default value for this property.
Parameter(s):
void : setInt2Value( DzInt2 val )
Sets the value for this property at the current time; or the default value if this property is not animatable.
Parameter(s):
void : setInt2Value( DzTime tm, DzInt2 val )
Sets the value for this property at the given time; or the default value if this property is not animatable.
Parameter(s):
void : setKeyInt2Value( Number i, DzInt2 val )
Sets the value of the i'th key.
Parameter(s):
Attention:
void : setRawInt2Value( DzInt2 val )
The same as calling setInt2Value( DzInt2 ).
void : setRawInt2Value( DzTime tm, DzInt2 val )
The same as calling setInt2Value( DzTime, DzInt2 ).