![]() ![]() ![]() |
▪Tips for programming in MG-Picker Studio :
For panel switching code: MGPickerView -activePanelIndex 2; //2 is the panel index Now animator could right-click on any free space of the panel, drag left and release to return to the main panel, drag the right switch to the body panel, drag up to switch to the fingers panel, and down to switch to the facial panel. The animator could still use 0~3 hotkey for panel switching for sure, but using the marking menu is a bit more intuitive way. If you keep all the panel designs and adopt the same marking menu, the 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().
|
![]() ![]() ![]() |