Dreppan
07-05-2005, 04:33 AM
I have a custom timescrubber that I would like all the current sounds to be displayed for the user's selection. Problem is, once the menu is placed in the UI, any future additions/deletions aren't reflected in the choices!
1) How do I keep the drop-down list reflecting current sound(s)?
2) How would the drop-down menu include the 'options' square so that users can evoke the Attribute Editor and offset that particular sound?
Help!
-------------------------------------------------------
paneLayout -configuration "horizontal2" -ps 1 100 50 -ps 2 100 50;
soundControl soundScrubber;
popupMenu -button 3 -ia;
menuItem -label "Import New" -command "ImportSoundFile";
menuItem -label "Delete" -command "delete `soundControl -q -s soundScrubber`";
menuItem -divider true;
menuItem -label "None" -command "soundControl -e -displaySound false -waveform both soundScrubber";
string $Sounds[] = `ls -type "audio"`;
for ($each in $Sounds)
{
menuItem -label $each -command "soundControl -e -sound $each -displaySound true -waveform both soundScrubber";
clear $Sounds;
}
timePort -gt true -enable true -isObscured -visible true timeScrubber;
-----------------------------------------------------------------------
1) How do I keep the drop-down list reflecting current sound(s)?
2) How would the drop-down menu include the 'options' square so that users can evoke the Attribute Editor and offset that particular sound?
Help!
-------------------------------------------------------
paneLayout -configuration "horizontal2" -ps 1 100 50 -ps 2 100 50;
soundControl soundScrubber;
popupMenu -button 3 -ia;
menuItem -label "Import New" -command "ImportSoundFile";
menuItem -label "Delete" -command "delete `soundControl -q -s soundScrubber`";
menuItem -divider true;
menuItem -label "None" -command "soundControl -e -displaySound false -waveform both soundScrubber";
string $Sounds[] = `ls -type "audio"`;
for ($each in $Sounds)
{
menuItem -label $each -command "soundControl -e -sound $each -displaySound true -waveform both soundScrubber";
clear $Sounds;
}
timePort -gt true -enable true -isObscured -visible true timeScrubber;
-----------------------------------------------------------------------
