  | | | adding to the menu | adding to the menu 2003-12-01 - By "Horvátth Szabolcs"
Back >You can't do it, because they completely screwed up when they >implemented Mental Ray for Maya, and it blows the menu away and >recreates it every time it is shown.
You always can modify the maya scripts to include your menus in the first place. The render menu is in the RenRenderMenu.mel. I include a sample to get an impression how you can do it.
>I initially had my Render Passes plugin neatly under the render menu, >until Mental Ray came along.
5.0.1 should have fixed these problems. Have you tried it with that version?
Cheers, Szabolcs
global proc RenRenderMenu( string $parent ) { popupMenu -e -deleteAllItems $parent; setParent -m $parent;
if( `menu -q -ni $parent` != 0 ) { return; }
// query API for the procedure associated with building the render menu // for the current renderer // string $command = eval("renderer -query -renderMenuProcedure `currentRenderer` ");
eval $command $parent;
setParent -m $parent; menuItem -divider true;
//SZ menuItem -l "Split Frame on Network..." -annotation "Splits the rendering of the frame to separate computers" -c "sz_MayaTileRender" SplitRenderRenderWindowItem; menuItem -l "Remote Render Frame..." -annotation "Render the current frame on a remote computer" -c "sz_MayaRemoteRenderFrame" EgykockaAlfredRenderWindowItem; menuItem -divider true; //END
//.... // Create submenu to allow for renderer selection
menuItem -subMenu true -label "Render using" -annotation "Change current renderer" ("renMenuRenderUsingItemMenuItem");
menuItem -edit -postMenuCommand ("buildRenderMenuRenderUsingSubmenu renMenuRenderUsingItemMenuItem") ("renMenuRenderUsingItemMenuItem"); }
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|
 |