A program to recognize and reward our most engaged community members
Is there a Lua scripting method to capture the in-screen selection of geometry or mesh elements?
I'd like to use that selection and only run a script on the selected objects.
Hello @Terry Vogler I don't think there is a method to grab the current selection like that from the API.
A workaround could be to script record (Record Macro action) a 'dummy' action like show/hide for your geometry and mesh elements. Then you can extract the objects you need a handle on. I normally end up using a more advanced editor like Visual Studio Code to then make multi-line changes or RegEx for search and replace of the 'dummy' action. Hopefully, that helps...
@David Thanks for the suggestion and work around. I will get to this eventually, and the approach makes sense.