PDA

View Full Version : Trouble with a UI script


CarlCampbell
04-10-2005, 01:32 AM
I'm making this script to control facial animation based off Busby and Bousquet's "Mastering the Art of Production with MAX4" and I seem to be stuck and I CAN'T figure out what is wrong...


---------------
-- UI Window --
---------------

w=newrolloutfloater "Control Facial" 335 350

-------------------------------
-- UI Rollout Facial Control --
-------------------------------

rollout rll_main "Control Facial" width:300 height:280
(

-------------------------------
-- UI Rollout Facial Control --
-------------------------------

bitmap bmpSchematic1 fileName:"open.bmp" pos:[5,15]
bitmap bmpSchematic2 fileName:"angry_right.bmp" pos:[110,15]
bitmap bmpSchematic3 fileName:"angry_left.bmp" pos:[215,15]
spinner spAbre "Abre" width:55 pos:[35,122] range:[0,110,0]
spinner spRAngry "Grr dcha." width:55 pos:[150,122] range:[0,110,0]
spinner spLAngry "Grr izq." width:55 pos:[250,122] range:[0,110,0]
button btnUpdate "Activar Camara Facial" align:#right width:262 height:20 pos:[30,285]
)

addrollout rll_main w
-------------------------
-- Eventos de rll_main --
-------------------------
on spAbre changed Phovalue do
(
$head.morpher[1].value=Phovalue
)
)

addrollout rll_main w.

I've just written 1 event so far to test and I get the following error: -- Type error: Call needs function or class, got: true

CarlCampbell
04-10-2005, 03:22 AM
Never mind... I managed to fix the problem by fiddling around a bit. Only trouble NOW is that it won't let me evaluate any scripts at all! I have to run them individually. Does anyone know how to solve this?

CGTalk Moderation
04-10-2005, 03:22 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.