Mattrne
03-23-2004, 11:04 AM
I have a point helper object, called EXP_Control, which has various custom attributes on it, hooked up to my facial skeleton. When these custom attributes are changed, it changes the rotations and or scales on bones in the face, to allow for facial animation. What I want to do, is creat a floater, with sliders on, which drive these custom attributes. However, I'm having a bit of trouble getting my floaters sliders to update the value on the custom attributes. What I have so far is this;
--USER INTERFACE ITEMS
FirstDialog = newRolloutFloater"IMM Facial Animation Floater" 200 175
rollout FirstRollout "Mouth Controls:"
(
slider MouthRootLateral "Mouth Root Lateral: " range:[-10,10,0] orient:#horizontal ticks:20 type: #float
on MouthRootLateral changed val do EXP_Control.Mouth_Root_Lateral = val
)
addrollout FirstRollout FirstDialog
However, when i evaluate this and try to move the slider, I get the following error;
--Unknow property:"Mouth_Root_Lateral" in undefined
The custom attribute I'm trying to update is called Mouth_Root_Lateral, but for some reason, it aint picking it up! What do I have to do to get this working? I'm (once again) pulling my hair out here!:cry:
--USER INTERFACE ITEMS
FirstDialog = newRolloutFloater"IMM Facial Animation Floater" 200 175
rollout FirstRollout "Mouth Controls:"
(
slider MouthRootLateral "Mouth Root Lateral: " range:[-10,10,0] orient:#horizontal ticks:20 type: #float
on MouthRootLateral changed val do EXP_Control.Mouth_Root_Lateral = val
)
addrollout FirstRollout FirstDialog
However, when i evaluate this and try to move the slider, I get the following error;
--Unknow property:"Mouth_Root_Lateral" in undefined
The custom attribute I'm trying to update is called Mouth_Root_Lateral, but for some reason, it aint picking it up! What do I have to do to get this working? I'm (once again) pulling my hair out here!:cry:
