PDA

View Full Version : Annoying syntax error!!!!



otuama
08-18-2008, 08:40 AM
Hi all. Was wondering if someone could help me out?

I'm on video 9 of Into to MEL (making a UI) and there is one line that's causing me problems. I have no idea why because as far as I can see it's simular to the code in the video.

The problem line seems to be "int $myNumCubes = `intSliderGrp -q -value "numCubes";"

I've restarted Maya, typed the line in again but nothing seems to work. Can anyone figure out what's wrong?

Many thanks,

Sean
_______________________________________________



if (`window -exists myWindow`) { deleteUI -window myWindow; }
window -rtf true -title "Create some Cubes" myWindow;

columnLayout;

intSliderGrp -label "Number of Cubes" -field true numCubes;

floatSliderGrp -label "Thickness" -field true cubeThickness;

button -c "cube" -label "Create";

showWindow myWindow;



proc findValues () {

//------------PROBLEM LINE BELOW!!!!-----------------------

int $myNumCubes = `intSliderGrp -q -value "numCubes";

print $myNumCubes;

}

chrisg
08-18-2008, 09:26 AM
Hi Sean,

Looks like that line doesn't have the ` closed.

int $myNumCubes = `intSliderGrp -q -value "numCubes"`;

`s are like quotation marks, you always need to close them.


Hi all. Was wondering if someone could help me out?

I'm on video 9 of Into to MEL (making a UI) and there is one line that's causing me problems. I have no idea why because as far as I can see it's simular to the code in the video.

The problem line seems to be "int $myNumCubes = `intSliderGrp -q -value "numCubes";"

I've restarted Maya, typed the line in again but nothing seems to work. Can anyone figure out what's wrong?

Many thanks,

Sean

otuama
08-18-2008, 09:51 AM
Arrrrrrrgh. For Gods sake.

You are right. If I'd watched 20 more seconds of the video I would have seen the same error on the training, which was sorted out 5 seconds later.

Thanks. Well, I feel like a berk!!!!

Sean