Mel scripting help?

Hello,

I was wondering if someone could help me write a MEL script that would allow me to do this:

select objectA
if objectA does not exists, then skip
if objectA exists, then put in on a Layer and rename it LAYER_A
if LAYBER_A already exists, then skip

select objectB
if objectB does not exists, then skip
if objectB exists, then put in on a Layer, rename it LAYERB.
if LAYERB already exists, then skip

Thank you!

Hi zero_steph,

Here is your MEL script =), (but Python is best ! :slight_smile:)

You can apply the same principle for objectB and LAYER_B by replacing the text between the double quotes on the beginning of the script
Peace,
Mehdi

That worked great, thank you very much!