I have written a MuscleStudio Script that creates a Single Muscle that can then be placed into Rigs. Also I have written a UI that controls the behaviour of the muscle itself. The problem that I am having is this...
Everything works fine with just the one muscle in a scene, but as soon as I duplicate or import a 2nd one, the UI no longer controls either of them. I had hoped to be able to use the UI as a generic 'tool' to control each muscle once it has been selected.
Is there a way to make a 'selected' muscle the one that the UI can use? I have tried using get, set and put etc but with no luck. I am guessing that I need to make a selected muscle somehow 'current' on a selection list or something. I will also add
a namefield or add-selected button in the UI to handle this, but am unsure of how
MEL works with this sort of thing. Plus I am not really a coder at all : (
Any help or info would be greatly appreciated as I am hoping to build a free muscle
tool that anybody can use : )
A similar situation is in the FinalRig script from Radiant Square whereby you get to select a node both within the persp view and the UI and all UI controls work with the currently selected Rig.