![]() ![]() ![]() |
▪Tips for the programming in MG-Picker Studio :
Which means, you attach the same marking menu to all the picker panels. For panel switching code: MGPickerView -activePanelIndex 2; //2 is the panel index Now animator could right click on any free space of panel, drag left and release to return to main panel, drag right switch to body panel, drag up to switch to fingers panel, down to switch to facial panel. Animator could still use 0~3 hotkey for panel switching for sure, but using marking menu is a bit more intuitive way. If you keep all the panel design adopt the same marking menu, animator could switch to a certain panel even without thinking.
string $currentItem = `MGPicker -q -currentItem`; //after this you could use $currentItem to call the MGPickerItem command.
string $attr = `MGPicker -q -currentAttributeName`;
put these scripts, including mel / python scripts, into the folder: Maya's user script folder/MG-PickerStudio/MGPicker_UserConfig/AutoSourced. The mel scripts within the folder will be auto-sourced, while python scripts will be imported by the function call: execfile().
|
![]() ![]() ![]() |