About This File
I wanted to share something I landed on today while working on friendlier usability for Marionette nodes.
This node takes an input list and dynamically populates the OIP popup control.
How to use it:
• Run the network.
• Deselect and reselect the popup node (if it’s already selected).
• Choose from the updated options in the popup.
• If you change the inputs, the node will try to remember your previous selection when you run the network again.
Some helpful details:
• It can differentiate between variable types, so if you feed it a 1 and a "1", it knows which one you picked.
• If duplicate values are present, it selects the first matching item in the input list.
• There are checkboxes to remove duplicates and sort the list alphabetically. Even if you use those options, the node still returns the index based on the original list.
Limitations:
• You’ll need to deselect and reselect the node any time you update the list. There’s currently no way to dynamically refresh the OIP while the node is selected.
This is a bit of a hacky solution, so I can’t speak to its long-term reliability yet, but so far it’s been working well.
I have other nodes in progress that build on this, but I wanted to share the base version in case anyone has suggestions or sees anything I’ve overlooked.
Let me know what you think.