Some context: I'm trying to write a simple script (unless something like this exists already) to replace text in bone names or swap a bone name suffix from L <-> R. I've actually tried to repurpose the framework of an existing script (specifically Rename Smart Bone), but my code crashes Moho when I click OK. Could someone help me understand what happens after SimpleDialog:OnOk() is called? Is the rest of Run() executed? I'm trying to understand where to put my code block that iterates over bones and replaces text. Preferably, I'd like to have this in a function called by a dedicated button.
While I'm asking this question, I'm curious about something else - is there a way to send scripts to Moho for execution from an IDE? Or is the only option for script development to keep closing / re-opening Moho?
