FORUMS: list search recent posts

Syntax error of MEL

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
sana son
Syntax error of MEL
on Oct 24, 2011 at 3:14:55 pm

I am new in this field......I am trying to create own renaming tool with this script which I found from video tuto.... somebody plz help me..to find the solution.. m getting error since 5 days.... code is given below which i m using and getting error:

//Renaming tools

//Create the window

string $RNM_Win = 'window -t "Rename it!"';

// Make the window a columnLayout and adjustables

columnLayout -adj 1;

// Query your sellection

string $sel[] = 'ls -sl';

// For loop - so we can access and apply the command to each sellected object individually

for ($each in $sel) {
// Name field - acqure the name sellected objects and allow to rename

nameField -o $each;

}

// Button on window for closing out our renaming tool

button -1 "close" -c "deletUI -window $RNM_Win";

// Show out renaming window

showWindow $RNM_Win;



// Error: string $RNM_Win = 'window -t "Rename it!"';
//
// Error: Syntax error //
// Error: string $sel[] = 'ls -sl';
//
// Error: Syntax error //


Return to posts index


Steve Sayer
Re: Syntax error of MEL
on Oct 25, 2011 at 1:54:01 pm

I see two problems here.

First, your code uses the wrong single-quote characters.

The "window" command and the "ls" command need to be surrounded by these quotes: ` `
You should not be using these ones: ' '.

The ones you want to use are entered using the button on the top left of your keyboard (next to the number one).

Once you fix that error you will probably get another one, because in the "button" command you have used a number one instead of a lower case letter l (just before the "close" arguments).

-Steve


Return to posts index

sana son
Re: Syntax error of MEL
on Oct 27, 2011 at 3:40:03 pm

Thanks a lot Steve......

Everything was right what u told... and now am facing small error:

error: Can not find procedure "deletUI"

NB: when click on close button of renaming window above error is coming what is that actually? please help me


Return to posts index


sana son
Re: Syntax error of MEL
on Oct 27, 2011 at 3:42:48 pm

Thanks Steve......

Everything was right what u told... and now am facing small error:

error: Can not find procedure "deleteUI"

NB: when click on close button of renaming window above error is coming what is that actually? please help me


Return to posts index

Steve Sayer
Re: Syntax error of MEL
on Oct 28, 2011 at 9:44:09 pm

Hmm, that shouldn't cause an error. 'deleteUI' is a built-in Maya command, so you shouldn't be getting that error... make sure you have spelled it correctly.

-Steve


Return to posts index

karan kumar
Re: Syntax error of MEL
on Mar 28, 2014 at 7:16:15 am

Hello sir
I Installed IGERSHADERS V-Ray Material Presets Pro 1.0.1 For Maya 2014 but it's not working the error is this type....
can anyone help me......

// Error: Line 1.16: Syntax error


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]