insert menuitem in panel menu of modalpanel

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2012
trying to insert menuitem in panel menu of modalpanel

their must be a way to append a menu item to the panel menu of the modal panel, since like


I am inserting the code below to my usersetup.mel



// begin cly_BlahBlahMenuBuild at startUp template
// Maya 2009 friendly
{
string $cmd = "buildPanelItemsNow(\"MayaWindow|formLayout1|viewPanes|modelPanel1|Panel  s\"); menuItem -label \"BlahBlah\" -c ( \"print \\\"doBlah\\\"\" ) -ia \"invertSelectionItem\" -parent Panels;";
scriptJob
-runOnce true // scriptjob dies on execution " BlahBlah menuItem will survive new scenes and menuMode changes"
-event "SceneOpened"
$cmd;
}


gives me error saying wrong number of arguments

now all i need to know what should be the parent in this case please help...

Last edited by DEVILSAN : 10 October 2012 at 04:53 PM.
 
  10 October 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:32 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.