pymel.core.nodetypes.BlendTwoAttr

Inheritance diagram of BlendTwoAttr

class BlendTwoAttr(*args, **kwargs)

class counterpart of mel function blendTwoAttr

A blendTwoAttr nodes takes two inputs, and blends the values of the inputs from one to the other, into an output value. The blending of the two inputs uses a blending function, and the following formula:(1 - blendFunction) * input[0] + blendFunction * input[1] The blendTwoAttr command can be used to blend the animation of an object to transition smoothly between the animation of two other objects. When the blendTwoAttr command is issued, it creates a blendTwoAttr node on the specified attributes, and reconnects whatever was previously connected to the attributes to the new blend nodes. You may also specify which two attributes should be used to blend together. The driver is used when you want to keyframe an object after it is being animated by a blend node. The current driver index specifies which of the two blended attributes should be keyframed.

getAttribute0(**kwargs)

The attribute that should be connected to the first input of the new blendTwoAttr node. When queried, it returns a string.

Derived from mel command maya.cmds.blendTwoAttr

getAttribute1(**kwargs)

The attribute that should be connected to the second input of the new blendTwoAttr node. When queried, it returns a string.

Derived from mel command maya.cmds.blendTwoAttr

getBlender(**kwargs)

The blender attribute. This is the attribute that will be connected to the newly created blendTwoAttr node(s) blender attribute. This attribute controls how much of each of the two attributes to use in the blend. If this flag is not specified, a new animation curve is created whose value goes from 1 to 0 throughout the time range specified by the -t flag. If -t is not specified, an abrupt change from the value of the first to the value of the second attribute will occur at the current time when this command is issued.

Derived from mel command maya.cmds.blendTwoAttr

getDriver(**kwargs)

The index of the driver attribute for this blend node (0 or 1) When queried, it returns an integer.

Derived from mel command maya.cmds.blendTwoAttr

getName(**kwargs)

name for the new blend node(s)

Derived from mel command maya.cmds.blendTwoAttr

setAttribute0(val=True, **kwargs)

The attribute that should be connected to the first input of the new blendTwoAttr node. When queried, it returns a string.

Derived from mel command maya.cmds.blendTwoAttr

setAttribute1(val=True, **kwargs)

The attribute that should be connected to the second input of the new blendTwoAttr node. When queried, it returns a string.

Derived from mel command maya.cmds.blendTwoAttr

setBlender(val=True, **kwargs)

The blender attribute. This is the attribute that will be connected to the newly created blendTwoAttr node(s) blender attribute. This attribute controls how much of each of the two attributes to use in the blend. If this flag is not specified, a new animation curve is created whose value goes from 1 to 0 throughout the time range specified by the -t flag. If -t is not specified, an abrupt change from the value of the first to the value of the second attribute will occur at the current time when this command is issued.

Derived from mel command maya.cmds.blendTwoAttr

setDriver(val=True, **kwargs)

The index of the driver attribute for this blend node (0 or 1) When queried, it returns an integer.

Derived from mel command maya.cmds.blendTwoAttr

Previous topic

pymel.core.nodetypes.BlendShape

Next topic

pymel.core.nodetypes.BlendWeighted

Core

Core Modules

Other Modules

This Page