pymel.core.nodetypes.UniformField

Inheritance diagram of UniformField

class UniformField(*args, **kwargs)

class counterpart of mel function uniform

A uniform field pushes objects in a fixed direction. The field strength, but not the field direction, depends on the distance from the object to the field location. 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 names of each of the fields. If a field was queried, the results of the query are returned. If a field was edited, the field name is returned. 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. If the list is empty, the command defaults to -pos 0 0 0. Setting the -pos flag with objects named on the command line is an error.

getDirection()

Returns the direction the uniform field pushes objects.

Return type:Vector

Derived from api method maya.OpenMayaFX.MFnUniformField.direction

getDirectionX(**kwargs)

X-component of direction.

Derived from mel command maya.cmds.uniform

getDirectionY(**kwargs)

Y-component of direction.

Derived from mel command maya.cmds.uniform

getDirectionZ(**kwargs)

Z-component of directionFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.uniform

getTorusSectionRadius(**kwargs)

Derived from mel command maya.cmds.uniform

getVolumeExclusion(**kwargs)

Derived from mel command maya.cmds.uniform

getVolumeOffset(**kwargs)

Derived from mel command maya.cmds.uniform

getVolumeShape(**kwargs)

Derived from mel command maya.cmds.uniform

getVolumeSweep(**kwargs)

Derived from mel command maya.cmds.uniform

setDirection(uniformDirection)

Sets the direction the uniform field pushes objects.

Parameters :
uniformDirection : Vector

A vector representing direction.

Derived from api method maya.OpenMayaFX.MFnUniformField.setDirection

setDirectionX(val=True, **kwargs)

X-component of direction.

Derived from mel command maya.cmds.uniform

setDirectionY(val=True, **kwargs)

Y-component of direction.

Derived from mel command maya.cmds.uniform

setDirectionZ(val=True, **kwargs)

Z-component of directionFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.uniform

setTorusSectionRadius(val=True, **kwargs)

Derived from mel command maya.cmds.uniform

setVolumeExclusion(val=True, **kwargs)

Derived from mel command maya.cmds.uniform

setVolumeOffset(val=True, **kwargs)

Derived from mel command maya.cmds.uniform

setVolumeShape(val=True, **kwargs)

Derived from mel command maya.cmds.uniform

setVolumeSweep(val=True, **kwargs)

Derived from mel command maya.cmds.uniform

Previous topic

pymel.core.nodetypes.Tweak

Next topic

pymel.core.nodetypes.UnitConversion

Core

Core Modules

Other Modules

This Page