suspend
11-19-2010, 01:30 PM
Ok How do you get a button to run a procedure and pass it field values...What I have just doesn't work, can someone red pen this? Thank you in advance
{
$win = `window`;
// define the layout of controls added
// to the window.
columnLayout;
$firstFrame = intField;
$midFrame = intField;
// create a command to delete the window
$command = ("deleteUI " + $win);
$deletekeys = ("framecopy" +($firstFrame));
// create a couple of buttons
button -label "Delete Keys" -command $deletekeys;
button -label "quit" -command $command;
// show the window we last created
showWindow;
};
global proc framecopy( int $frame )
{
currentTime $frame ;
timeSliderCopyKey;
currentTime 298 ;
timeSliderPasteKey false;
};
{
$win = `window`;
// define the layout of controls added
// to the window.
columnLayout;
$firstFrame = intField;
$midFrame = intField;
// create a command to delete the window
$command = ("deleteUI " + $win);
$deletekeys = ("framecopy" +($firstFrame));
// create a couple of buttons
button -label "Delete Keys" -command $deletekeys;
button -label "quit" -command $command;
// show the window we last created
showWindow;
};
global proc framecopy( int $frame )
{
currentTime $frame ;
timeSliderCopyKey;
currentTime 298 ;
timeSliderPasteKey false;
};
