class counterpart of mel function air
The air field simulates the effects of moving air. The affected objects will be accelerated or decelerated so that their velocities match that of the air. With the ‘-vco true’ flag thrown, only accelerations are applied. By parenting an air field to a moving part of an object (ie. a foot of a character) and using ‘-i 1 -m 0 -s .5 -vco true’ flags, one can simulate the movement of air around the foot as it moves, since the TOTAL velocity vector of the field would be only based on the movement of the foot. This can be done while the character walks through leaves or dust on the ground. For each listed object, the command creates a new field. The transform is the associated dependency node. Use connectDynamic to cause the field to affect a dynamic object. If fields are created, this command returns the field names. If a field was queried, the results of the query are returned. If a field was edited, the field name is returned. If the -pos flag is specified, a field is created at the position specified. If not, if object names are provided or the active selection list is non-empty, the command creates a field for every object in the list and calls addDynamic to add it to the object; otherwise the command defaults to -pos 0 0 0. Setting the -pos flag with objects named on the command line is an error.
Similar to ‘windSetup’ except that the effects of a fan or a person blowing air are approximated. The user can pass the same flags on the command line to adjust them from the defaults. These are the values that get set to approximate a ‘fan’: inheritVelocity 1.0 inheritRotation true componentOnly false enableSpread true spread .5 (45 degrees from center )
Derived from mel command maya.cmds.air
Returns true if the air field will apply force only in the direction specified by the combination of its direction, speed, and inherit velocity attributes. Returns false if the force is made to effect the object’s velocity to match the air field’s velocity.
Return type: | bool |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.componentOnly
Returns the direction the air is blowing.
Return type: | Vector |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.direction
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Direction that the air will try to match the affected particles’ velocity to. NOTE: This is not the velocity; this is only the direction. Use the -s flag to set the speed.
Derived from mel command maya.cmds.air
Returns true if the air field is using the spread angle to define the influence of the air field.
Return type: | bool |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.enableSpread
Returns true if the air field is rotating or parented to a rotating object, and will undergo that same rotation.
Return type: | bool |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.inheritRotation
Returns the amount of the moving air field’s velocity that is added to the direction and magnitude of the wind.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.inheritVelocity
Position in space where you want to place a field. The field then emanates from this position in space rather than from an object. Note that you can both use -pos (creating a field at a position) and also provide object names.
Derived from mel command maya.cmds.air
Returns the control setting on how quickly objects match the velocity of the air field.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.speed
Returns a value that represents an angle which objects are affected by the air fields direction setting. This value is taken into account when the Enable Spread attribute is turned on.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnAirField.spread
Derived from mel command maya.cmds.air
If this is ‘false’, the air will accelerate or decelerate the affected objects so that their velocities will eventually match the TOTAL velocity vector of the air field. If this is ‘true’, only ACCELERTION is applied to the affected objects so that their velocity component along the TOTAL velocity vector matches or is greater in magnitude than the TOTAL velocity vector. This will not slow objects down to match velocities, only speed them up to match components. This is most useful when using the -iv flag with a value 0.
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Enables the air field to apply force specified as a combination of its direction, speed, and inherit veloicty attributes.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setComponentOnly
Sets the direction vector for the air to blow.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setDirection
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Direction that the air will try to match the affected particles’ velocity to. NOTE: This is not the velocity; this is only the direction. Use the -s flag to set the speed.
Derived from mel command maya.cmds.air
Enables the air field to influence objects based on the spread angle setting.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setEnableSpread
Enables the air field to undergo rotations and effect the direction that the air field points.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setInheritRotation
Sets the amount of the moving air field’s velocity that is added to the direction and magnitude of the wind.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setInheritVelocity
Position in space where you want to place a field. The field then emanates from this position in space rather than from an object. Note that you can both use -pos (creating a field at a position) and also provide object names.
Derived from mel command maya.cmds.air
Sets the control setting on how quickly the objects match the velocity of the air field.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setSpeed
Sets the value representing an angle which objects are affected by the air fields direction setting. This value is taken into account when the Enable Spread attribute is turned on.
Parameters : |
|
---|
Derived from api method maya.OpenMayaFX.MFnAirField.setSpread
Derived from mel command maya.cmds.air
If this is ‘false’, the air will accelerate or decelerate the affected objects so that their velocities will eventually match the TOTAL velocity vector of the air field. If this is ‘true’, only ACCELERTION is applied to the affected objects so that their velocity component along the TOTAL velocity vector matches or is greater in magnitude than the TOTAL velocity vector. This will not slow objects down to match velocities, only speed them up to match components. This is most useful when using the -iv flag with a value 0.
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Derived from mel command maya.cmds.air
Like the ‘windSetup’ and ‘fanSetup’, ‘wakeSetup’ sets certain values in the field to approximate the movement of air near a moving object, such as a character’s foot or hand. The values that are set are: inheritVelocity 1.0 inheritRotation false componentOnly true enableSpread false speed 0.0 Flag can have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.air
This will set some of the values above in a way that approximates the effects of a basic wind. This allows the user to then change certain values as he/she wishes on the same command line. First the preset values get set, and then any other flags that were passed get taken into account. These are the values that get set to approximate ‘wind’: inheritVelocity 0.0 inheritRotation true componentOnly false enableSpread false
Derived from mel command maya.cmds.air