Hi,
I need a bit help with making UI…
Would anyone know if it’s possible, and if so, how to parent popupMenu to individual fields of attrFieldGrp?
A simple example where you can do popupMenu -parent to attrFieldGrp but the probem is that the same popupMenu is showing on each field i click while i would like to have separate and different popupMenu for each field.
string $objectCreate[] = `sphere`;
window;
columnLayout;
attrFieldGrp -l "Translate " -attribute ($objectCreate[0] + ".translate") translate;
popupMenu -parent translate;
menuItem -l "Do something";
showWindow;
Here it the rough concept how it would be cool if it works like that…
string $objectCreate[] = `sphere`;
window;
columnLayout;
attrFieldGrp -l "Translate " -attribute ($objectCreate[0] + ".translate") translate;
popupMenu -parent Translate Label;
menuItem -l "Do something on Label" -c "";
popupMenu -parent translateX field;
menuItem -l "Do something to X" -c "";
popupMenu -parent translateY field;
menuItem -l "Do something to Y" -c "";
popupMenu -parent translateZ field;
menuItem -l "Do something to Z" -c "";
showWindow;
Is something like this even possible?
Thanks!
