pub struct Material { /* private fields */ }
Expand description
Represents a material node (SHOP) with methods for texture baking
Implementations§
Source§impl 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, buffer: &mut Vec<u8>, image_planes: impl AsRef<str>, format: impl AsRef<str>, ) -> Result<()>
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 Freeze for Material
impl !RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl !UnwindSafe for Material
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more