AnimChannelScalarDynamic

from panda3d.core import AnimChannelScalarDynamic
class AnimChannelScalarDynamic

Bases:

Bases: AnimChannel_ACScalarSwitchType

An animation channel that accepts a scalar each frame from some dynamic input provided by code.

This object operates in two modes: in explicit mode, the programmer should call setValue() each frame to indicate the new value; in implicit mode, the programmer should call setValueNode() to indicate the node whose X component will be copied to the scalar each frame.

Inheritance diagram

Inheritance diagram of AnimChannelScalarDynamic

static getClassType() TypeHandle
setValue(value: float)

Explicitly sets the value. This will remove any node assigned via setValueNode().

setValueNode(node: PandaNode)

Specifies a node whose transform will be queried each frame to implicitly specify the transform of this joint. This will override the values set by setValue().

property value float
Getter

Gets the value of the channel. This will return the value explicitly specified by setValue() unless a value node was specified using setValueNode().

Gets the value of the channel at the indicated frame.

Setter

Explicitly sets the value. This will remove any node assigned via setValueNode().

property value_node PandaNode
Getter

Returns the node that was set via setValueNode(), if any.

Setter

Specifies a node whose transform will be queried each frame to implicitly specify the transform of this joint. This will override the values set by setValue().