IBundleFactory

class omni.graph.core.IBundleFactory

Bases: omni.graph.core._omni_graph_core._IBundleFactory, omni.core._core.IObject

Interface to create new bundles

Methods

__init__(*args, **kwargs)

Overloaded function.

create()

returns

Create instance of bundle factory.

create_bundle(self, context, path)

Create bundle at given path.

create_bundles(self, context, paths)

Create bundles at given paths.

get_bundle(*args, **kwargs)

Overloaded function.

get_bundles(*args, **kwargs)

Overloaded function.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: omni.graph.core._omni_graph_core.IBundleFactory, arg0: omni.core._core.IObject) -> None

  2. __init__(self: omni.graph.core._omni_graph_core.IBundleFactory) -> None

static create() omni::core::Api<omni::graph::core::IBundleFactory2_abi>
Returns

Create instance of bundle factory.

Return type

og.IBundleFactory

create_bundle(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, path: str) omni.graph.core._omni_graph_core.IBundle2

Create bundle at given path.

Args:

context (og.GraphContext): The context where bundles are created. path (str): Location for new bundle.

Returns:

og.IBundle: Bundle instance.

create_bundles(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, paths: List[str]) List[omni.graph.core._omni_graph_core.IBundle2]

Create bundles at given paths.

Args:

context (og.GraphContext): The context where bundles are created. paths (List[str]): Locations for new bundles.

Returns:

List[og.IBundle]: A list of bundle instances.

get_bundle(*args, **kwargs)

Overloaded function.

  1. get_bundle(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, bundle: omni.graph.core._omni_graph_core.IBundle2) -> omni.graph.core._omni_graph_core.IBundle2

  2. get_bundle(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, bundle: omni.graph.core._omni_graph_core.IConstBundle2) -> omni.graph.core._omni_graph_core.IConstBundle2

get_bundles(*args, **kwargs)

Overloaded function.

  1. get_bundles(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, bundles: List[omni.graph.core._omni_graph_core.IConstBundle2]) -> List[omni.graph.core._omni_graph_core.IConstBundle2]

  2. get_bundles(self: omni.graph.core._omni_graph_core.IBundleFactory, context: omni::graph::core::Py_GraphContext, bundles: List[omni.graph.core._omni_graph_core.IBundle2]) -> List[omni.graph.core._omni_graph_core.IBundle2]