View Single Post
# 1 22-03-2004 , 01:15 AM
Registered User
Join Date: Dec 2003
Location: Nebraska
Posts: 6

Custom UI Help Please

Hi I"m not good at all at Mel, and I can't figure this out. I want to make a script for this loop:

int $f;

for ($f = 1; $f <= 10; $f++) { currentTime $f; shaveWriteRib -frame $f ("c:\\file." + $f + ".rib"); }

and run it through this UI:

window -height 90 -title "RibWriter" -width 370; rowLayout -columnWidth4 80 100 100 80 -enable on -height 64 -numberOfColumns 4 -visible on -width 362; text -enable on -height 17 -label "Frames" -visible on -width 80; intField -editable on -enable on -height 23 -maxValue 1000 -minValue 1 -visible on -width 100; button -height 28 -label "Rib It" -width 80;

showWindow;

What I want is to use this UI to select the amount of frames to export. But I only know the loop and have no Idea how to write the script to run it off of that UI, I realize this might not get me any where but I"m having a hard time with this. Thanks!