pub enum Parameter {
Float(FloatParameter),
Int(IntParameter),
String(StringParameter),
Button(IntParameter),
Other(BaseParameter),
}
Expand description
Enum of different parameter types.
Variants§
Float(FloatParameter)
ParmType::Float | ParmType::Color
Int(IntParameter)
ParmType::Int | ParmType::Toggle
String(StringParameter)
ParmType::String | ParmType::Node | ParmType::PathFile | ParmType::PathFileDir | ParmType::PathFileGeo | ParmType::PathFileImage
Button(IntParameter)
ParmType::Int
Other(BaseParameter)
Other ParmType::_
Implementations§
Trait Implementations§
source§impl ParmBaseTrait for Parameter
impl ParmBaseTrait for Parameter
fn name(&self) -> Result<Cow<'_, str>>
fn session(&self) -> &Session
fn node(&self) -> NodeHandle
fn size(&self) -> i32
fn info(&self) -> &ParmInfo
source§fn update(&mut self) -> Result<()>
fn update(&mut self) -> Result<()>
Update the internal parameter metadata if Houdini parameter changed,
for example children added to a multi-parm or the menu was updated.
If the parameter has choice menu.
If parameter is a menu type, return a vec of menu items
source§fn multiparm_children(&self) -> Result<Option<Vec<Parameter>>>
fn multiparm_children(&self) -> Result<Option<Vec<Parameter>>>
If the parameter is a multiparm, return its children parms.
NOTE: THis is not a recommended way to traverse parameters in general,
this is here for convenience only
source§fn expression(&self, index: i32) -> Result<Option<String>>
fn expression(&self, index: i32) -> Result<Option<String>>
Returns a parameter expression string