logo
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

Set environment variable on the server

Get environment variable from the server

Retrieve all server variables

Initialize session with options

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.

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 [create::enums::StatusType]

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

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

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.