Loki
05-13-2008, 03:52 PM
Hallo
I'm here again with a new scripting question.
I'm trying to write a little script to build Right and Left Shapes from a single Shape and assign them to a base model.
The last step is to create the Mixer with the name of the Shapes models. XSI does it, but adding "ShapeKey_Mix_Weight" suffix.
I'm trying to remove this suffix... without results (jet)
So... the question: How can I change the name of a Custom Parameter in a Script?
I don't reach to change it in any way... I does it manually right clicking on a Custom Parameter, then clicking on Edit Parameter Definition.
If I change the name, in the Script Editor i can read this:
Application.EditParameterDefinition("Piero_Weight.Mixer.Mixer_Shape_Track768.Broncio_Sh apeKey_ClusterClip.Mixer_Shape_Track770.Occhio_Sha peKey_Clip.actionclip.weight", "New_Name", 5, 0, 1, 0, 1, "New_Name", "New_Name")
The Name of the Custom Parameter changes... but if I try to run the string manually via Script Editor, the name doesn't change!!
Anyone knows how I can do it?
Thanks in advance
I'm here again with a new scripting question.
I'm trying to write a little script to build Right and Left Shapes from a single Shape and assign them to a base model.
The last step is to create the Mixer with the name of the Shapes models. XSI does it, but adding "ShapeKey_Mix_Weight" suffix.
I'm trying to remove this suffix... without results (jet)
So... the question: How can I change the name of a Custom Parameter in a Script?
I don't reach to change it in any way... I does it manually right clicking on a Custom Parameter, then clicking on Edit Parameter Definition.
If I change the name, in the Script Editor i can read this:
Application.EditParameterDefinition("Piero_Weight.Mixer.Mixer_Shape_Track768.Broncio_Sh apeKey_ClusterClip.Mixer_Shape_Track770.Occhio_Sha peKey_Clip.actionclip.weight", "New_Name", 5, 0, 1, 0, 1, "New_Name", "New_Name")
The Name of the Custom Parameter changes... but if I try to run the string manually via Script Editor, the name doesn't change!!
Anyone knows how I can do it?
Thanks in advance