IConstBundle2#
- class omni.graph.core.IConstBundle2#
- Bases: - _IConstBundle2- Provide read only access to recursive bundles. - Methods - __init__(*args, **kwargs)- Overloaded function. - add_attribute(self, type, name)- DEPRECATED - use create_attribute() instead. - add_attributes(self, types, names)- DEPRECATED - use create_attributes() instead. - clear(self)- DEPRECATED - use clear_contents() instead - get_attribute_by_name(*args, **kwargs)- Overloaded function. - get_attribute_count(self)- Get the number of attributes in this bundle - get_attribute_data(self[, write])- DEPRECATED - use get_attributes() instead - get_attribute_data_count(self)- DEPRECATED - use get_attribute_count() instead - get_attribute_metadata_by_name(*args, **kwargs)- Overloaded function. - get_attribute_metadata_count(self, attribute)- Gets the number of metadata fields in an attribute within the bundle - get_attribute_metadata_names(self, attribute)- Get names of all metadata fields in the attribute. - get_attribute_metadata_types(self, attribute)- Get types of all metadata fields in the attribute. - get_attribute_names(self)- Get the names of all attributes in this bundle. - DEPRECATED - use get_attribute_names() or get_attribute_types() instead - get_attribute_types(self)- Get the types of all attributes in this bundle. - get_attributes(self)- Get all attributes in this bundle. - 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 the number of metadata entries - Get the names of all metadata fields in this bundle. - Get the types of all metadata fields in this bundle. - get_child_bundle(self, index)- Get the child bundle by index. - get_child_bundle_by_name(self, path)- Lookup for child under specified path. - get_child_bundle_count(self)- Get the number of child bundles - 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_context(self)- Get the context used by this bundle - get_metadata_storage(self)- Get access to metadata storage that contains all metadata information - get_name(self)- Get the name of the bundle - get_parent_bundle(self)- Get the parent bundle - get_path(self)- Get the path to this bundle - get_prim_path(self)- DEPRECATED - use get_path() instead - insert_attribute(self, attribute_to_copy, name)- DEPRECATED - use copy_attribute() instead - insert_bundle(self, bundle_to_copy)- DEPRECATED - use copy_bundle() instead. - is_read_only(self)- Returns if this interface is read-only. - is_valid(self)- DEPRECATED - use bool cast instead - remove_attribute(self, name)- DEPRECATED - use remove_attribute_by_name() instead. - remove_attributes(self, names)- DEPRECATED - use remove_attributes_by_name() instead. - Attributes - valid- __init__(*args, **kwargs)#
- Overloaded function. - __init__(self: omni.graph.core._omni_graph_core.IConstBundle2, arg0: omni.core._core.IObject) -> None 
- __init__(self: omni.graph.core._omni_graph_core.IConstBundle2) -> None 
 
 - add_attribute(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- type: omni::graph::core::Py_Type,
- name: str,
- DEPRECATED - use create_attribute() instead. 
 - add_attributes(self: omni.graph.core._omni_graph_core.IConstBundle2, types: List[omni::graph::core::Py_Type], names: List[str]) None#
- DEPRECATED - use create_attributes() instead. 
 - clear( ) None#
- DEPRECATED - use clear_contents() instead 
 - get_attribute_by_name(*args, **kwargs)#
- Overloaded function. - get_attribute_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, name: str, readOnly: bool) -> omni::graph::core::Py_AttributeData 
 - DEPRECATED - use get_attribute_by_name(name) instead - get_attribute_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, 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:
- omni.graph.core.AttributeData: An attribute. If attribute is not found then invalid attribute is returned. 
 
 
 - get_attribute_count( ) int#
- Get the number of attributes in this bundle - Returns:
- Number of attributes in this bundle. 
- Return type:
- int 
 
 - get_attribute_data(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- write: bool = False,
- DEPRECATED - use get_attributes() instead 
 - get_attribute_data_count( ) int#
- DEPRECATED - use get_attribute_count() instead 
 - get_attribute_metadata_by_name(*args, **kwargs)#
- Overloaded function. - get_attribute_metadata_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, 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[omni.graph.core.AttributeData]: Array of metadata fields in the attribute. 
 
- get_attribute_metadata_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, 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:
- omni.graph.core.AttributeData: Metadata fields in the attribute. 
 
 
 - get_attribute_metadata_count(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- attribute: str,
- Gets the number of metadata fields in an attribute within the bundle - Parameters:
- attribute (str) – Name of the attribute to count metadata for. 
- Returns:
- Number of metadata fields in the attribute. 
- Return type:
- int 
 
 - get_attribute_metadata_names(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- attribute: str,
- Get names of all metadata fields in the attribute. - Parameters:
- attribute (str) – Name of the attribute. 
- Returns:
- Array of names in the attribute. 
- Return type:
- list[str] 
 
 - get_attribute_metadata_types(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- attribute: str,
- Get types of all metadata fields in the attribute. - Parameters:
- attribute (string) – Name of the attribute. 
- Returns:
- Array of types in the attribute. 
- Return type:
- list[omni.graph.core.Type] 
 
 - get_attribute_names( ) List[str]#
- Get the names of all attributes in this bundle. - Returns:
- A list of the names. 
- Return type:
- list[str] 
 
 - get_attribute_names_and_types( ) tuple#
- DEPRECATED - use get_attribute_names() or get_attribute_types() instead 
 - get_attribute_types( ) List[omni::graph::core::Py_Type]#
- Get the types of all attributes in this bundle. - Returns:
- A list of the types. 
- Return type:
- list[omni.graph.core.Type] 
 
 - get_attributes( ) List[omni::graph::core::Py_AttributeData]#
- Get all attributes in this bundle. - Returns:
- A list of all attributes in this bundle. 
- Return type:
 
 - get_attributes_by_name(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- names: List[str],
- Searches for attributes in this bundle by using attribute names. - Parameters:
- names (list[str]) – Attribute names to search for. 
- Returns:
- A list of found attributes. 
- Return type:
 
 - get_bundle_metadata_by_name(*args, **kwargs)#
- Overloaded function. - get_bundle_metadata_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, 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[omni.graph.core.AttributeData]: Metadata fields in this bundle. 
 
- get_bundle_metadata_by_name(self: omni.graph.core._omni_graph_core.IConstBundle2, 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:
- omni.graph.core.AttributeData: Metadata field in this bundle. 
 
 
 - get_bundle_metadata_count( ) int#
- Get the number of metadata entries - Returns:
- Number of metadata fields in this bundle. 
- Return type:
- int 
 
 - get_bundle_metadata_names( ) List[str]#
- Get the names of all metadata fields in this bundle. - Returns:
- Array of names in this bundle. 
- Return type:
- list[str] 
 
 - get_bundle_metadata_types( ) List[omni::graph::core::Py_Type]#
- Get the types of all metadata fields in this bundle. - Returns:
- Array of types in this bundle. 
- Return type:
- list[omni.graph.core.Type] 
 
 - get_child_bundle(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- index: int,
- Get the child bundle by index. - Parameters:
- index (int) – Child bundle index in range [0, child_bundle_count). 
- Returns:
- Child bundle under the index. If bundle index is out of range, then invalid bundle is returned. 
- Return type:
 
 - get_child_bundle_by_name(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- path: str,
- Lookup for child under specified path. - Parameters:
- path (str) – Path to child bundle in this bundle. 
- Returns:
- Child bundle in this bundle. If child does not exist under the path, then invalid bundle is returned. 
- Return type:
 
 - get_child_bundle_count( ) int#
- Get the number of child bundles - Returns:
- Number of child bundles in this bundle. 
- Return type:
- int 
 
 - get_child_bundles( ) List[omni.graph.core._omni_graph_core.IConstBundle2]#
- Get all child bundle handles in this bundle. - Returns:
- A list of all child bundles in this bundle. 
- Return type:
 
 - get_child_bundles_by_name(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- names: List[str],
- Lookup for children under specified names. - Parameters:
- names (list[str]) – Names to child bundles in this bundle. 
- Returns:
- A list of found child bundles in this bundle. 
- Return type:
 
 - get_context( ) omni::graph::core::Py_GraphContext#
- Get the context used by this bundle - Returns:
- The context of this bundle. 
- Return type:
 
 - get_metadata_storage( ) omni.graph.core._omni_graph_core.IConstBundle2#
- Get access to metadata storage that contains all metadata information - Returns:
- List of bundles with the metadata information 
- Return type:
- list[omni.graph.core.IBundle2] 
 
 - get_name( ) str#
- Get the name of the bundle - Returns:
- The name of this bundle. 
- Return type:
- str 
 
 - get_parent_bundle( ) omni.graph.core._omni_graph_core.IConstBundle2#
- Get the parent bundle - Returns:
- The parent of this bundle, or invalid bundle if there is no parent. 
- Return type:
 
 - get_path( ) str#
- Get the path to this bundle - Returns:
- The path to this bundle. 
- Return type:
- str 
 
 - get_prim_path( ) str#
- DEPRECATED - use get_path() instead 
 - insert_attribute(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- attribute_to_copy: omni::graph::core::Py_AttributeData,
- name: str,
- DEPRECATED - use copy_attribute() instead 
 - insert_bundle(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- bundle_to_copy: omni.graph.core._omni_graph_core.IConstBundle2,
- DEPRECATED - use copy_bundle() instead. 
 - is_read_only( ) bool#
- Returns if this interface is read-only. 
 - is_valid( ) bool#
- DEPRECATED - use bool cast instead 
 - remove_attribute(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- name: str,
- DEPRECATED - use remove_attribute_by_name() instead. 
 - remove_attributes(
- self: omni.graph.core._omni_graph_core.IConstBundle2,
- names: List[str],
- DEPRECATED - use remove_attributes_by_name() instead.