IGH_ContextualParameter2

Version 2 of Base interface for contextual parameters. This makes accessing non-strongly-typed functionality easier.

Properties

AtLeast

Minimum number of inputs to request
int AtLeast { get; }
inherited fromIGH_ContextualParameter

AtMost

Maximum number of inputs to request.
int AtMost { get; }
inherited fromIGH_ContextualParameter

ContextualData

Iterate over all specified contextual values.
IEnumerable<object> ContextualData { get; }
inherited fromIGH_ContextualParameter

Immediate

Gets whether this parameter triggers immediate updates from inside its getter. Immediacy is important for a smooth experience, but it maybe disabled if the expected recalculation time becomes excessive.
bool Immediate { get; }
inherited fromIGH_ContextualParameter

Prompt

Gets the prompt to be displayed while asking the user to enter data. The prompt string may contain '{0}' fields which will be populated with the amount of values picked so far.
string Prompt { get; }
inherited fromIGH_ContextualParameter

Methods

AssignContextualData

Assign a collection of values as contextual data.
void AssignContextualData(
data
Data to assign. Should be of expected type.
)
inherited fromIGH_ContextualParameter

AutoAssignContextualData

Use the in-build getter UI to assign data to the parameter.
bool AutoAssignContextualData()
inherited fromIGH_ContextualParameter

ClearContextualData

#
Clear previously assigned collection of values as contextual data
void ClearContextualData()