Class: AxPropertyLinkInputModel

AxPropertyLinkInputModel(context, linkedProperty, valueInput, conditionInput, originalFactornon-null, inputFactornon-null, multiplicationFactornon-null)

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
Source:

Methods

Process()

Performs the input model routines
Source:

Documentation generated by JSDoc 3.5.3 on Mon Feb 19 2018 20:39:27 GMT+0200 (FLE Standard Time)