Struct hapi_rs::session::Session

source ·
pub struct Session { /* private fields */ }
Expand description

Session represents a unique connection to the Engine instance and all API calls require a valid session. It implements Clone and is Send and Sync

Implementations

Return SessionType current session is initialized with.

Return enum with extra connection data such as pipe file or socket.

Set environment variable on the server

Get environment variable from the server

Retrieve all server variables

Retrieve string data given a handle.

Cleanup the session. Session will not be valid after this call and needs to be initialized again

Check if session is initialized

Create an input geometry node which can accept modifications

Create an input geometry node with crate::enums::PartType set to Curve

Create a node. name must start with a network category, e.g, “Object/geo”, “Sop/box” New node will not be cooked.

Find a node given an absolute path. To find a child node, pass the parent node or use HoudiniNode::find_child_by_path

Find a parameter by its absolute path

Returns a manager (root) node such as OBJ, TOP, CHOP, etc

Save current session to hip file

Load a hip file into current session

Merge a hip file into current session

Load an HDA file into current session

Interrupt session cooking

Get session state of a requested crate::enums::StatusType

Is session currently cooking. In non-threaded mode always returns false

Explicit check if the session is valid. Many APIs do this check in the debug build.

Get the status message given a type and verbosity

Get session cook result status as string

How many nodes need to cook

How many nodes have already cooked

In threaded mode wait for Session finishes cooking. In single-thread mode, immediately return See Documentation

Retrieve connection error if could not connect to engine instance

Get Houdini time

Set Houdini time

Lock the internal reentrant mutex. Should not be used in general, but may be useful in certain situations when a series of API calls must be done in sequence

Set Houdini timeline options

Get Houdini timeline options

Set session to use Houdini time

Get the viewport(camera) position

Set the viewport(camera) position

Set session sync mode on/off

Get session sync info

Set session sync info

Get license type used by this session

Render a COP node to an image file

Render a COP node to a memory buffer

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.