IBundle2
- class omni.graph.core.IBundle2
Bases:
omni.graph.core._omni_graph_core._IBundle2
,omni.graph.core._omni_graph_core.IConstBundle2
Provide read write access to recursive bundles.
Methods
__init__
(*args, **kwargs)Overloaded function.
add_attribute
(self, type, name)add_attributes
(self, types, names)clear
(self)clear_contents
(self[, bundle_metadata, ...])"Removes all attributes and child bundles from this bundle, but keeps the bundle itself."
copy_attribute
(*args, **kwargs)Overloaded function.
copy_attributes
(*args, **kwargs)Overloaded function.
copy_bundle
(self, source_bundle[, overwrite])Copy bundle data and metadata from the source bundle to this bundle.
copy_child_bundle
(self, name, bundle)Create new child bundle by copying existing one, with possibility of giving child a new name.
copy_child_bundles
(self, names, bundles)Create new child bundles by copying existing ones, with possibility of giving children new names.
create_attribute
(self, name, type, element_count)Creates attribute based on provided name and type.
create_attribute_like
(self, pattern_attribute)Use input attribute as pattern to create attribute in this bundle.
create_attribute_metadata
(*args, **kwargs)Overloaded function.
create_attributes
(self, names, types)Creates attributes based on provided names and types.
create_attributes_like
(self, pattern_attributes)Use input attributes as pattern to create attributes in this bundle.
create_bundle_metadata
(*args, **kwargs)Overloaded function.
create_child_bundle
(self, path)Creates immediate child bundle under specified path in this bundle.
create_child_bundles
(self, paths)Creates immediate child bundles under specified paths in this bundle.
get_attribute_by_name
(*args, **kwargs)Overloaded function.
get_attribute_data
(self[, write])get_attribute_data_count
(self)get_attribute_metadata_by_name
(*args, **kwargs)Overloaded function.
get_attributes
(self)Searches for attributes in this bundle by using attribute names.
get_attributes_by_name
(self, names)Searches for attributes in this bundle by using attribute names.
get_bundle_metadata_by_name
(*args, **kwargs)Overloaded function.
get_child_bundle
(self, index)Get the child bundle by index.
get_child_bundle_by_name
(self, name)Lookup for child under specified name.
get_child_bundles
(self)Get all child bundle handles in this bundle.
get_child_bundles_by_name
(self, names)Lookup for children under specified names.
get_metadata_storage
(self)DEPRECATED - DO NOT USE
get_parent_bundle
(self)- returns
The parent of this bundle, or invalid bundle if there is no parent.
get_prim_path
(self)insert_attribute
(self, attribute_to_copy, name)insert_bundle
(self, bundle_to_copy)is_valid
(self)link_attribute
(*args, **kwargs)Overloaded function.
link_attributes
(*args, **kwargs)Overloaded function.
link_child_bundle
(*args, **kwargs)Overloaded function.
link_child_bundles
(*args, **kwargs)Overloaded function.
remove_all_attributes
(self)Remove all attributes from this bundle.
remove_all_child_bundles
(self)Remove all child bundles from this bundle.
remove_attribute
(*args, **kwargs)Overloaded function.
remove_attribute_metadata
(*args, **kwargs)Overloaded function.
remove_attributes
(*args, **kwargs)Overloaded function.
remove_attributes_by_name
(self, names)Looks up the attributes by names and remove their data and metadata.
remove_bundle_metadata
(*args, **kwargs)Overloaded function.
remove_child_bundle
(self, bundle)Looks up the bundle and if it is child of the bundle then remove it.
remove_child_bundles
(self, bundles)Looks up the bundles and if they are children of the bundle then remove them.
remove_child_bundles_by_name
(self, names)Looks up child bundles by name and remove their data and metadata.
Attributes
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: omni.graph.core._omni_graph_core.IBundle2, arg0: omni.core._core.IObject) -> None
__init__(self: omni.graph.core._omni_graph_core.IBundle2) -> None
- add_attribute(self: omni.graph.core._omni_graph_core.IBundle2, type: omni::graph::core::Py_Type, name: str) omni::graph::core::Py_AttributeData
- add_attributes(self: omni.graph.core._omni_graph_core.IBundle2, types: List[omni::graph::core::Py_Type], names: List[str]) None
- clear(self: omni.graph.core._omni_graph_core.IBundle2) None
- clear_contents(self: omni.graph.core._omni_graph_core.IBundle2, bundle_metadata: bool = False, attributes: bool = True, child_bundles: bool = True) int
“Removes all attributes and child bundles from this bundle, but keeps the bundle itself.”
- Args:
bundle_metadata (bool): Clears bundle metadata in this bundle. attributes (bool): Clears attributes in this bundle. child_bundles (bool): Clears child bundles in this bundle.
- Returns:
omni.core.Result: Success if successfully cleared.
- copy_attribute(*args, **kwargs)
Overloaded function.
copy_attribute(self: omni.graph.core._omni_graph_core.IBundle2, attribute: omni::graph::core::Py_AttributeData, overwrite: bool = True) -> omni::graph::core::Py_AttributeData
Create new attribute by copying existing one, including its data.
Created attribute is owned by this bundle.
- Args:
attribute (og.AttributeData): Attribute whose data type is to be copied. overwrite (bool): Overwrite existing attribute in this bundle.
- Returns:
og.AttributeData: Copied attribute.
copy_attribute(self: omni.graph.core._omni_graph_core.IBundle2, name: str, attribute: omni::graph::core::Py_AttributeData, overwrite: bool = True) -> omni::graph::core::Py_AttributeData
Create new attribute by copying existing one, including its data.
Created attribute is owned by this bundle.
- Args:
name (str): The new name for copied attribute. attribute (og.AttributeData): Attribute whose data type is to be copied. overwrite (bool): Overwrite existing attribute in this bundle.
- Returns:
og.AttributeData: Copied attribute.
- copy_attributes(*args, **kwargs)
Overloaded function.
copy_attributes(self: omni.graph.core._omni_graph_core.IBundle2, attributes: List[omni::graph::core::Py_AttributeData], overwrite: bool = True) -> List[omni::graph::core::Py_AttributeData]
Create new attributes by copying existing ones, including their data.
Names of new attributes are taken from source attributes. Created attributes are owned by this bundle.
- Args:
attributes (List[og.AttributeData]): Attributes whose data type is to be copied. overwrite (bool): Overwrite existing attributes in this bundle.
- Returns:
List[og.AttributeData]: A list of copied attributes.
copy_attributes(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str], attributes: List[omni::graph::core::Py_AttributeData], overwrite: bool = True) -> List[omni::graph::core::Py_AttributeData]
Create new attributes by copying existing ones, including their data, with possibility of giving them new names.
Created attributes are owned by this bundle.
- Args:
names (List[str]): Names for the new attributes. attributes (List[og.AttributeData]): Attributes whose data type is to be copied. overwrite (bool): Overwrite existing attributes in this bundle.
- Returns:
List[og.AttributeData]: A list of copied attributes.
- copy_bundle(self: omni.graph.core._omni_graph_core.IBundle2, source_bundle: omni.graph.core._omni_graph_core.IConstBundle2, overwrite: bool = True) None
Copy bundle data and metadata from the source bundle to this bundle.
- Args:
source_bundle (og.IConstBundle): Bundle whose data is to be copied. overwrite (bool): Overwrite existing content of the bundle.
- copy_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, name: str, bundle: omni.graph.core._omni_graph_core.IConstBundle2) omni.graph.core._omni_graph_core.IBundle2
Create new child bundle by copying existing one, with possibility of giving child a new name.
Created bundle is owned by this bundle.
- Args:
name (str): Name of new child. bundle (og.IConstBundle): Bundle whose data is to be copied.
- Returns:
og.IBundle: Newly copied bundle.
- copy_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str], bundles: List[omni.graph.core._omni_graph_core.IConstBundle2]) List[omni.graph.core._omni_graph_core.IBundle2]
Create new child bundles by copying existing ones, with possibility of giving children new names.
Created bundles are owned by this bundle.
- Args:
names (List[str]): Names of new children. bundles (List[og.IConstBundle]): Bundles whose data is to be copied.
- Returns:
List[og.IBundle]: Newly copied bundles.
- create_attribute(self: omni.graph.core._omni_graph_core.IBundle2, name: str, type: omni::graph::core::Py_Type, element_count: int = 0) omni::graph::core::Py_AttributeData
Creates attribute based on provided name and type.
Created attribute is owned by this bundle.
- Args:
name (str): Name of the attribute. type (og.Type): Type of the attribute. element_count (int): Number of elements in the array.
- Returns:
og.AttributeData: Newly created attribute.
- create_attribute_like(self: omni.graph.core._omni_graph_core.IBundle2, pattern_attribute: omni::graph::core::Py_AttributeData) omni::graph::core::Py_AttributeData
Use input attribute as pattern to create attribute in this bundle.
The name and type are taken from pattern attribute, data is not copied. Created attribute is owned by this bundle.
- Args:
pattern_attribute (og.AttributeData): Attribute whose name and type is to be used to create new attribute.
- Returns:
og.AttributeData: Newly created attribute.
- create_attribute_metadata(*args, **kwargs)
Overloaded function.
create_attribute_metadata(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_names: List[str], field_types: List[omni::graph::core::Py_Type]) -> List[omni::graph::core::Py_AttributeData]
Create attribute metadata fields.
- Args:
attribute (str): Name of the attribute. field_names (List[str]): Names of new metadata field. field_types (List[og.Type]): Types of new metadata field. element_count (int): Number of elements in the arrray.
- Returns:
List[og.AttributeData]: Newly created metadata fields.
create_attribute_metadata(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_name: str, field_type: omni::graph::core::Py_Type, element_count: int = 0) -> omni::graph::core::Py_AttributeData
Create attribute metadata field.
- Args:
attribute (str): Name of the attribute. field_name (str): Name of new metadata field. field_type (og.Type): Type of new metadata field.
- Returns:
og.AttributeData: Newly created metadata field.
- create_attributes(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str], types: List[omni::graph::core::Py_Type]) List[omni::graph::core::Py_AttributeData]
Creates attributes based on provided names and types.
Created attributes are owned by this bundle.
- Args:
names (List[str]): Names of the attributes. types (List[og.Type]): Types of the attributes.
- Returns:
List[og.AttributeData]: A list of created attributes.
- create_attributes_like(self: omni.graph.core._omni_graph_core.IBundle2, pattern_attributes: List[omni::graph::core::Py_AttributeData]) List[omni::graph::core::Py_AttributeData]
Use input attributes as pattern to create attributes in this bundle.
Names and types for new attributes are taken from pattern attributes, data is not copied. Created attributes are owned by this bundle.
- Args:
pattern_attributes (List[og.AttributeData]): Attributes whose name and type is to be used to create new attributes.
- Returns:
List[og.AttributeData]: A list of newly created attributes.
- create_bundle_metadata(*args, **kwargs)
Overloaded function.
create_bundle_metadata(self: omni.graph.core._omni_graph_core.IBundle2, field_names: List[str], field_types: List[omni::graph::core::Py_Type]) -> List[omni::graph::core::Py_AttributeData]
Creates bundle metadata fields based on provided names and types.
Created fields are owned by this bundle.
- Args:
field_names (List[str]): Names of the fields. field_types (List[og.Type]): Types of the fields. element_count (int): Number of elements in the arrray.
- Returns:
List[og.AttributeData]: A list of created fields.
create_bundle_metadata(self: omni.graph.core._omni_graph_core.IBundle2, field_name: str, field_type: omni::graph::core::Py_Type, element_count: int = 0) -> omni::graph::core::Py_AttributeData
Creates bundle metadata field based on provided name and type.
Created field are owned by this bundle.
- Args:
field_name (str): Name of the field. field_type (og.Type): Type of the field.
- Returns:
og.AttributeData: Created field.
- create_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, path: str) omni.graph.core._omni_graph_core.IBundle2
Creates immediate child bundle under specified path in this bundle.
Created bundle is owned by this bundle. This method does not work recursively. Only immediate child can be created.
- Args:
path (str): New child path in this bundle.
- Returns:
og.IBundle: Created child bundle.
- create_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2, paths: List[str]) List[omni.graph.core._omni_graph_core.IBundle2]
Creates immediate child bundles under specified paths in this bundle.
Created bundles are owned by this bundle. This method does not work recursively. Only immediate children can be created.
- Args:
paths (List[str]): New children paths in this bundle.
- Returns:
List[og.IBundle]: A list of created child bundles.
- get_attribute_by_name(*args, **kwargs)
Overloaded function.
get_attribute_by_name(self: omni.graph.core._omni_graph_core.IBundle2, name: str, readOnly: bool) -> omni::graph::core::Py_AttributeData
get_attribute_by_name(self: omni.graph.core._omni_graph_core.IBundle2, name: str) -> omni::graph::core::Py_AttributeData
Searches for attribute in this bundle by using attribute name.
- Args:
name (str): Attribute name to search for.
- Returns:
og.AttributeData: An attribute. If attribute is not found then invalid attribute is returned.
- get_attribute_data(self: omni.graph.core._omni_graph_core.IBundle2, write: bool = False) list
- get_attribute_data_count(self: omni.graph.core._omni_graph_core.IBundle2) int
- get_attribute_metadata_by_name(*args, **kwargs)
Overloaded function.
get_attribute_metadata_by_name(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_names: List[str]) -> List[omni::graph::core::Py_AttributeData]
Search for metadata fields for the attribute by using field names.
- Args:
attribute (str): Name of the attribute. field_names (List[str]): Attribute metadata fields to be searched for.
- Returns:
List[og.AttributeData]: Array of metadata fields in the attribute.
get_attribute_metadata_by_name(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_name: str) -> omni::graph::core::Py_AttributeData
Search for metadata field for the attribute by using field name.
- Args:
attribute (str): Name of the attribute. field_name (str): Attribute metadata field to be searched for.
- Returns:
og.AttributeData: Metadata fields in the attribute.
- get_attribute_names_and_types(self: omni.graph.core._omni_graph_core.IBundle2) tuple
- get_attributes(self: omni.graph.core._omni_graph_core.IBundle2) List[omni::graph::core::Py_AttributeData]
Searches for attributes in this bundle by using attribute names.
- Args:
names (List[str]): Attribute names to search for.
- Returns:
List[og.AttributeData]: A list of found attributes.
- get_attributes_by_name(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str]) List[omni::graph::core::Py_AttributeData]
Searches for attributes in this bundle by using attribute names.
- Args:
names (List[str]): Attribute names to search for.
- Returns:
List[og.AttributeData]: A list of found attributes.
- get_bundle_metadata_by_name(*args, **kwargs)
Overloaded function.
get_bundle_metadata_by_name(self: omni.graph.core._omni_graph_core.IBundle2, field_names: List[str]) -> List[omni::graph::core::Py_AttributeData]
Search for field handles in this bundle by using field names.
- Args:
field_names (List[str]): Bundle metadata fields to be searched for.
- Returns:
List[og.AttributeData]: Metadata fields in this bundle.
get_bundle_metadata_by_name(self: omni.graph.core._omni_graph_core.IBundle2, field_name: str) -> omni::graph::core::Py_AttributeData
Search for field handle in this bundle by using field name.
- Args:
field_name (str): Bundle metadata fields to be searched for.
- Returns:
og.AttributeData: Metadata field in this bundle.
- get_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, index: int) omni.graph.core._omni_graph_core.IBundle2
Get the child bundle by index.
- Args:
index (int): Child bundle index in range [0, child_bundle_count).
- Returns:
og.IBundle: Child bundle under the index. If bundle index is out of range, then invalid bundle is returned.
- get_child_bundle_by_name(self: omni.graph.core._omni_graph_core.IBundle2, name: str) omni.graph.core._omni_graph_core.IBundle2
Lookup for child under specified name.
- Args:
path (str): Name to child bundle in this bundle.
- Returns:
og.IBundle: Child bundle in this bundle. If child does not exist under the path, then invalid bundle is returned.
- get_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2) List[omni.graph.core._omni_graph_core.IBundle2]
Get all child bundle handles in this bundle.
- Returns:
List[og.IBundle]: A list of all child bundles in this bundle.
- get_child_bundles_by_name(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str]) List[omni.graph.core._omni_graph_core.IBundle2]
Lookup for children under specified names.
- Args:
names (List[str]): Names of child bundles in this bundle.
- Returns:
List[og.IBundle]: A list of found child bundles in this bundle.
- get_metadata_storage(self: omni.graph.core._omni_graph_core.IBundle2) omni.graph.core._omni_graph_core.IBundle2
DEPRECATED - DO NOT USE
- get_parent_bundle(self: omni.graph.core._omni_graph_core.IBundle2) omni.graph.core._omni_graph_core.IBundle2
- Returns
The parent of this bundle, or invalid bundle if there is no parent.
- Return type
og.IBundle
- get_prim_path(self: omni.graph.core._omni_graph_core.IBundle2) str
- insert_attribute(self: omni.graph.core._omni_graph_core.IBundle2, attribute_to_copy: omni::graph::core::Py_AttributeData, name: str) omni::graph::core::Py_AttributeData
- insert_bundle(self: omni.graph.core._omni_graph_core.IBundle2, bundle_to_copy: omni.graph.core._omni_graph_core.IConstBundle2) None
- is_valid(self: omni.graph.core._omni_graph_core.IBundle2) bool
- link_attribute(*args, **kwargs)
Overloaded function.
link_attribute(self: omni.graph.core._omni_graph_core.IBundle2, target_attribute: omni::graph::core::Py_AttributeData) -> omni::graph::core::Py_AttributeData
Adds an attribute to this bundle as link with names taken from target attribute.
Added attribute is a link to other attribute that is part of another bundle. The link is owned by this bundle, but target of the link is not. Removing link from this bundle does not destroy the data link points to.
- Args:
target_attribute (og.AttributeData): Attribute whose data is to be added.
- Returns:
og.AttributeData: Attribute that is a link.
link_attribute(self: omni.graph.core._omni_graph_core.IBundle2, link_name: str, target_attribute: omni::graph::core::Py_AttributeData) -> omni::graph::core::Py_AttributeData
Adds an attribute to this bundle as link with custom name.
Added attribute is a link to other attribute that is part of another bundle. The link is owned by this bundle, but target of the link is not. Removing link from this bundle does not destroy the data link points to.
- Args:
link_name (str): Name for new link. target_attribute (og.AttributeData): Attribute whose data is to be added.
- Returns:
og.AttributeData: Attribute that is a link.
- link_attributes(*args, **kwargs)
Overloaded function.
link_attributes(self: omni.graph.core._omni_graph_core.IBundle2, target_attributes: List[omni::graph::core::Py_AttributeData]) -> List[omni::graph::core::Py_AttributeData]
Adds a set of attributes to this bundle as links with names taken from target attributes.
Added attributes are links to other attributes that are part of another bundle. The links are owned by this bundle, but targets of the links are not. Removing links from this bundle does not destroy the data links point to.
- Args:
target_attributes (List[og.AttributeData]): Attributes whose data is to be added.
- Returns:
List[og.AttributeData]: A list of attributes that are links.
link_attributes(self: omni.graph.core._omni_graph_core.IBundle2, link_names: List[str], target_attributes: List[omni::graph::core::Py_AttributeData]) -> List[omni::graph::core::Py_AttributeData]
Adds a set of attributes to this bundle as links with custom names.
Added attributes are links to other attributes that are part of another bundle. The links are owned by this bundle, but targets of the links are not. Removing links from this bundle does not destroy the data links point to.
- Args:
link_names (List[str]): target_attributes (List[og.AttributeData]): Attributes whose data is to be added.
- Returns:
List[og.AttributeData]: A list of attributes that are links.
- link_child_bundle(*args, **kwargs)
Overloaded function.
link_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, name: str, bundle: omni.graph.core._omni_graph_core.IConstBundle2) -> omni.graph.core._omni_graph_core.IBundle2
Link a bundle as child in current bundle, under given name.
- Args:
name (str): The name under which the child bundle should be linked bundle (og.IConstBundle): The bundle to link
- Returns:
og.IBundle: The linked bundle
link_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, bundle: omni.graph.core._omni_graph_core.IConstBundle2) -> omni.graph.core._omni_graph_core.IBundle2
Link a bundle as child in current bundle.
- Args:
bundle (og.IConstBundle): The bundle to link
- Returns:
og.IBundle: The linked bundle
- link_child_bundles(*args, **kwargs)
Overloaded function.
link_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str], bundles: List[omni.graph.core._omni_graph_core.IConstBundle2]) -> List[omni.graph.core._omni_graph_core.IBundle2]
Link a set of bundles as child in current bundle, under given names.
- Args:
names (List[str]): The names under which the child bundles should be linked bundles (List[og.IConstBundle]): The bundles to link
- Returns:
List[og.IBundle]: The list of created bundles
link_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2, bundles: List[omni.graph.core._omni_graph_core.IConstBundle2]) -> List[omni.graph.core._omni_graph_core.IBundle2]
Link a set of bundles as child in current bundle.
- Args:
bundles (List[og.IConstBundle]): The bundles to link
- Returns:
List[og.IBundle]: The list of created bundles
- remove_all_attributes(self: omni.graph.core._omni_graph_core.IBundle2) int
Remove all attributes from this bundle.
- Returns:
int: Number of attributes successfully removed.
- remove_all_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2) int
Remove all child bundles from this bundle.
Only empty bundle can be removed.
- Returns:
int: Number of child bundles successfully removed.
- remove_attribute(*args, **kwargs)
Overloaded function.
remove_attribute(self: omni.graph.core._omni_graph_core.IBundle2, name: str) -> None
remove_attribute(self: omni.graph.core._omni_graph_core.IBundle2, attribute: omni::graph::core::Py_AttributeData) -> int
Looks up the attribute and if it is part of this bundle then remove it.
Attribute handle that is not part of this bundle is ignored.
- Args:
attribute (og.AttributeData): Attribute whose data is to be removed.
- Returns:
omni.core.Result: Success if successfully removed.
- remove_attribute_metadata(*args, **kwargs)
Overloaded function.
remove_attribute_metadata(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_names: List[str]) -> int
Remove attribute metadata fields.
- Args:
attribute (str): Name of the attribute. field_names (List[str]): Names of the fields to be removed.
- Returns:
int: Number of fields successfully removed.
remove_attribute_metadata(self: omni.graph.core._omni_graph_core.IBundle2, attribute: str, field_name: str) -> int
Remove attribute metadata field.
- Args:
attribute (str): Name of the attribute. field_name (str): Name of the field to be removed.
- Returns:
omni.core.Result: Success if successfully removed.
- remove_attributes(*args, **kwargs)
Overloaded function.
remove_attributes(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str]) -> None
remove_attributes(self: omni.graph.core._omni_graph_core.IBundle2, attributes: List[omni::graph::core::Py_AttributeData]) -> int
Looks up the attributes and if they are part of this bundle then remove them.
Attribute handles that are not part of this bundle are ignored.
- Args:
attributes (List[og.AttributeData]): Attributes whose data is to be removed.
- Returns:
int: number of removed attributes
- remove_attributes_by_name(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str]) int
Looks up the attributes by names and remove their data and metadata.
- Args:
names (List[str]): Names of the attributes whose data is to be removed.
- Returns:
omni.core.Result: Success if successfully removed.
- remove_bundle_metadata(*args, **kwargs)
Overloaded function.
remove_bundle_metadata(self: omni.graph.core._omni_graph_core.IBundle2, field_names: List[str]) -> int
Looks up bundle metadata fields and if they are part of this bundle metadata then remove them.
Fields that are not part of this bundle are ignored.
- Args:
field_names (List[str]): Names of the fields whose data is to be removed.
- Returns:
int: Number of fields successfully removed.
remove_bundle_metadata(self: omni.graph.core._omni_graph_core.IBundle2, field_name: str) -> int
Looks up bundle metadata field and if it is part of this bundle metadata then remove it.
Field that is not part of this bundle is ignored.
- Args:
field_name (str): Name of the field whose data is to be removed.
- Returns:
omni.core.Result: Success if successfully removed.
- remove_child_bundle(self: omni.graph.core._omni_graph_core.IBundle2, bundle: omni.graph.core._omni_graph_core.IConstBundle2) int
Looks up the bundle and if it is child of the bundle then remove it.
Bundle handle that is not child of this bundle is ignored. Only empty bundle can be removed.
- Args:
bundle (og.IConstBundle): bundle to be removed.
- Returns:
omni.core.Result: Success if successfully removed.
- remove_child_bundles(self: omni.graph.core._omni_graph_core.IBundle2, bundles: List[omni.graph.core._omni_graph_core.IConstBundle2]) int
Looks up the bundles and if they are children of the bundle then remove them.
Bundle handles that are not children of this bundle are ignored. Only empty bundles can be removed.
- Args:
bundles (List[og.IConstBundle]): Bundles to be removed.
- Returns:
int: Number of child bundles successfully removed.
- remove_child_bundles_by_name(self: omni.graph.core._omni_graph_core.IBundle2, names: List[str]) int
Looks up child bundles by name and remove their data and metadata.
- Args:
names (List[str]): Names of the child bundles to be removed.
- Returns:
omni.core.Result: Success if successfully removed.