how would i pass values from option menus to objects such as cameras in an array? i've tried to find out how to do this from the help but all my efforst have proved unsuccessful. i have an interface with an option menu that lists all the film gate settings such as "User," "16 mm Theatrical," etc. I have others but I'm just using this as an example. At the bottom is a button. When the user clicks on the button, I would like for the values in all my fields to be applied to the cameras.
Here is the code i'm working with:
proc changeCameras()
{
string $cameraList[] = ls -type "camera"
;
string $cameras;
string $film_gate = optionMenu -q -value User
;
for ($cameras in $cameraList)
{
if (optionMenu -value User)
camera -e -horizontalFilmAperture .5;
camera -e -verticalFilmAperture .5;
}
}
Any help with this problem would be appreciated! Thanks!