Here is a quick excerpt from my MenuItems.xml:
- Code: Select all
<MenuItem id="saveScene">
<Name>Edit Scenes...</Name>
<CallbackMethod>saveScene</CallbackMethod>
<ButtonTitle>Save</ButtonTitle>
<ConfigUI>
<Field id="sceneId" type="menu" defaultValue="">
<Label>Scene:</Label>
<List class="self" method="sceneListGenerator"></List>
<CallbackMethod>scenesListItemSelected</CallbackMethod>
</Field>
<Field id="sceneIdLabel" type="label" alignWithControl="true" fontSize="small" fontColor="darkgray">
<Label>Select the Scene preset for storing the configuration. Scenes with an asterisk (*) next to them have data already saved in them. Selecting one of these Scenes will overwrite the data saved.</Label>
</Field>
<Field id="sceneName" type="textfield" defaultValue="">
<Label>Scene Name:</Label>
</Field>
<Field id="sceneNameLabel" type="label" alignWithControl="true" fontSize="small" fontColor="darkgray">
<Label>Assign a name to this Scene.</Label>
</Field>
.....
.....
</ConfigUI>
</MenuItem>
So far, all of the methods are functioning ok - saveScene, sceneListGenerator, and scenesListItemSelected... The logic for populating the 'valuesDict' in the scenesListItemSelected method works fine after the dialog is displayed and I select different items in the main 'Scene' list..
Any tips on how to populate the MenuItem fields upon dialog initialization is appreciated