new AxPropertyLinkInputModel(context, linkedProperty, valueInput, conditionInput, originalFactornon-null, inputFactornon-null, multiplicationFactornon-null)
Creates an input model, which updates a property value according to a given input.
The value of the property is controlled by the given factor parameters and is calculated as follows:
originalValue * originalFactor + inputValue * inputFactor + originalValue * inputValue * multiplicationFactor
The property can be either Float, Int or Bool, where any absolute value equal or greater than 1.0 is considered true
Parameters:
Name | Type | Description |
---|---|---|
context |
Axis | The instance of Axis, to which the model will be applied |
linkedProperty |
AxProperty | The transform which is to act as a pivot for orbiting around |
valueInput |
String | AxString | Names of the inputs to use as input value. Passing a null or empty string value would discard the control. |
conditionInput |
String | AxString | Names of the inputs to serve as a condition to allow the linking. Passing a null or empty string value would discard the control. |
originalFactor |
Number | The factor by which to multiply the original property value. If omitted, a value of 1.0 is assumed |
inputFactor |
Number | The factor by which to multiply the input value. If omitted, a value of 1.0 is assumed |
multiplicationFactor |
Number | The factor by which to multiply the product of the originalproperty value and the input value. If omitted, a value of 0.0 is assumed |
Methods
Process()
Performs the input model routines