Hi Len,
re:
> Is there a way to pass data to the UI. As an example, I want to be able to populate input fields
> with defaults.
Is it the UI for a command? There is usually a default="" attribute you can set on the control, like:
code:
<moi:NumericInput id="Angle" default="360.0"/>
You'll need the control to have a unique id="" value on it. When the command starts, it will initialize controls, setting them to their last used value (unless style="persist:false" is set) or to the default="" value if it's the first run of that command.
The last used value is stored using the id="" value as a lookup key, so a unique id value should be set for each control for that to work.
- Michael
|