Material selection in command line drop-down style

Hi,
I am trying to create a command to apply materials to objects.
For the material selection step, I want to create a drop-down style UI in the command line which will look for material names in RhinoDoc.RenderMaterials and autocomplete similar to how the regular Rhino command line UI works for all commands.

how can i achieve this ? I want to add my own options (which are material names) and the user selects a material, which I can then use to apply to objects.

Thanks,
Srujan

Seen this topic?

1 Like

Hi @svichare,

Adding a dropdown to the command line is currently not possible. You probably should consider a different UI approach.

– Dale

Thanks for the suggestion @martinsiegrist
Cheers

Thanks for getting back, @dale
Will do