pub struct SessionOptions {
pub cook_opt: CookOptions,
pub threaded: bool,
pub cleanup: bool,
pub env_files: Option<CString>,
pub otl_path: Option<CString>,
pub dso_path: Option<CString>,
pub img_dso_path: Option<CString>,
pub aud_dso_path: Option<CString>,
}Expand description
Options passed to HAPI_Initialize when creating an initialized Session.
These settings configure the Houdini runtime after a transport connection
exists. Server process and transport settings belong in
crate::server::ServerOptions.
Fields§
§cook_opt: CookOptionsDefault cook options used by the session.
threaded: boolWhether Houdini cooks on a separate cooking thread.
cleanup: boolRun HAPI_Cleanup before closing the session.
This is disabled by default because cleanup can be expensive and normal server termination releases its Houdini-side state. Enable it only when that state requires an orderly teardown before the connection closes.
env_files: Option<CString>Platform-separated list of Houdini environment files loaded at initialization.
otl_path: Option<CString>Platform-separated HDA/OTL search paths.
dso_path: Option<CString>Platform-separated generic DSO plugin search paths.
img_dso_path: Option<CString>Platform-separated image DSO plugin search paths.
aud_dso_path: Option<CString>Platform-separated audio DSO plugin search paths.
Implementations§
Source§impl SessionOptions
impl SessionOptions
Sourcepub fn houdini_env_files<I>(self, files: I) -> Self
pub fn houdini_env_files<I>(self, files: I) -> Self
A list of Houdini environment files the Engine will load from.
§Panics
Panics if the joined path list contains an interior null byte.
Sourcepub fn otl_search_paths<I>(self, paths: I) -> Self
pub fn otl_search_paths<I>(self, paths: I) -> Self
Add search paths for the Engine to find HDAs.
§Panics
Panics if the joined path list contains an interior null byte.
Sourcepub fn dso_search_paths<P>(self, paths: P) -> Self
pub fn dso_search_paths<P>(self, paths: P) -> Self
Add search paths for the Engine to find DSO plugins.
§Panics
Panics if the joined path list contains an interior null byte.
Sourcepub fn image_search_paths<P>(self, paths: P) -> Self
pub fn image_search_paths<P>(self, paths: P) -> Self
Add search paths for the Engine to find image plugins.
§Panics
Panics if the joined path list contains an interior null byte.
Sourcepub fn audio_search_paths<P>(self, paths: P) -> Self
pub fn audio_search_paths<P>(self, paths: P) -> Self
Add search paths for the Engine to find audio files.
§Panics
Panics if the joined path list contains an interior null byte.
Sourcepub fn cook_options(self, options: CookOptions) -> Self
pub fn cook_options(self, options: CookOptions) -> Self
Pass session CookOptions