Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Small MEL script error

Small MEL script error

samunawa
Enthusiast Enthusiast
549 Views
2 Replies
Message 1 of 3

Small MEL script error

samunawa
Enthusiast
Enthusiast

Hi there. I'm trying to run a small script which will open a window and show up 2 sliders. I'm trying to execute this code but I keep getting errors and I don't understand why. Heres the code:

 

{
    window -wh 200 300 -t "MyWindow";
        columnLayout;
            floatSliderGrp -label "Slider01" -field true
            floatSliderGrp -label "Slider02" -field true;
                -fieldMinValue -50 -fieldMaxValue 50
                -minValue -10 -maxValue 10 -value 0;
    showWindow;;
}

Sorry for being a noob, I'm still in the learning process, thanks 🙂

0 Likes
Accepted solutions (1)
550 Views
2 Replies
Replies (2)
Message 2 of 3

joostkonemann
Advocate
Advocate
Accepted solution

Just check your semicolons... 

 

{
    window -wh 200 300 -t "MyWindow";
        columnLayout;
            floatSliderGrp -label "Slider01" -field true;
            floatSliderGrp -label "Slider02" -field true
                -fieldMinValue -50 -fieldMaxValue 50
                -minValue -10 -maxValue 10 -value 0;
    showWindow;
}
--
MacBook Pro 13,3 - 2.7GHz - 16GB - Radeon Pro 460 - macOS Catalina 10.15
Message 3 of 3

samunawa
Enthusiast
Enthusiast

Ah thank you so much Smiley Very Happy

0 Likes