panda3d.core.PartBundleNode

from panda3d.core import PartBundleNode
class PartBundleNode

Bases: PandaNode

This is a node that contains a pointer to an PartBundle. Like AnimBundleNode, it exists to make it easy to store PartBundles in the scene graph.

(Unlike AnimBundleNode, however, PartBundleNode has an additional function: it is also the base class of the Character node type, which adds additional functionality.)

Inheritance diagram

Inheritance diagram of PartBundleNode

__init__(name: str, bundle: PartBundle) → None

The PartBundle and its node should be constructed together. Generally, the derived classes of PartBundleNode will automatically create a PartBundle of the appropriate type, and pass it up to this constructor.

getNumBundles() → int
getBundle(n: int) → PartBundle
Return type

PartBundle

getBundleHandle(n: int) → PartBundleHandle

Returns the PartBundleHandle that wraps around the actual nth PartBundle. While the PartBundle pointer might later change due to a future flatten operation, the PartBundleHandle will not.

Return type

PartBundleHandle

static getClassType() → TypeHandle
Return type

TypeHandle

getBundles() → list
getBundleHandles() → list
property bundles
Return type

Sequence[PartBundle]

property bundle_handles

Returns the PartBundleHandle that wraps around the actual nth PartBundle. While the PartBundle pointer might later change due to a future flatten operation, the PartBundleHandle will not.

Return type

Sequence[PartBundleHandle]