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 !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