See Crowd Agents for more information.
Creates an empty (and modifiable) agent shape library.
__init__(geometry, name = "")
Creates a new agent shape library by loading it from its geometry representation.
Raises hou.OperationFailed if the shape library could not be loaded.
The hou.Geometry to load the shape library from.
The name for the new shape library.
__init__(filename, keep_external_ref = True)
Creates a new agent shape library by loading it from the specified geometry file.
Raises hou.OperationFailed if the file does not exist or otherwise cannot be loaded.
A path to a geometry file.
bool indicating whether the external reference should be maintained when the agent is saved to a geometry file.
If the reference is maintained, then the shape library file needs to be available when the saved geometry is used (only the path to the shape library is saved in the geometry file).
Otherwise, a copy of the shape library will be inlined when saving out the geometry so that the original shape library file is no longer needed.
Adds a new shape to the shape library.
Raises hou.GeometryPermissionError if the shape library is not modifiable.
The name for the new shape.
A hou.Geometry containing the shape’s geometry.
Returns the geometry representation of the shape library, which can be saved to disk.
fileName(expanded = False)
If the shape library is an external reference, returns the path to the file on disk.
Specifies whether to expand any variables in the path, such as
freeze(keep_external_ref = False)
Creates a modifiable copy of the shape library.
If the original shape library referenced a file on disk, specifies whether the new shape library should be marked as including the original library. In this situation, saving out the new shape library will only write out shapes that were not included from the original library, along with the path to the included shape library. Otherwise, saving out the new shape library will produce a standalone library containing all of the shapes.
bool indicating whether the shape library references a file on disk.
Finds the shape with the specified name, or None if no such shape exists.
Returns the name or filename of the shape library.
Returns a list of all shapes in the shape library.