pub struct Material { /* private fields */ }
Expand description
Represents a material node (SHOP) with methods for texture baking
Implementations
sourceimpl Material
impl Material
pub fn node(&self) -> Result<HoudiniNode>
pub fn has_changed(&self) -> bool
pub fn render_texture(&self, parm_name: &str) -> Result<()>
pub fn extract_image_to_file(
&self,
image_planes: impl AsRef<str>,
path: impl AsRef<Path>
) -> Result<String>
pub fn extract_image_to_memory(
&self,
image_planes: impl AsRef<str>,
format: impl AsRef<str>
) -> Result<Vec<i8>>
pub fn set_image_info(&self, info: &ImageInfo) -> Result<()>
pub fn get_image_info(&self) -> Result<ImageInfo>
pub fn get_image_planes(&self) -> Result<Vec<String>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl !UnwindSafe for Material
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more