Hi, I know this is old, but I searched for "outlinerEdMenuUserCallback" and 
found only this related post.

I just managed to put some custom items on the Outliner right-click menu.
>From what I searched (and witnessed by reading the OutlinerEdMenu.mel), the 
only thing this script does is to source another script named 
"outlinerEdMenuUserCallback".

And that's what I did. I created a script in Maya's Script Path named 
"outlinerEdMenuUserCallback" and put my menu initialization there:
global string $gOutlinerPopupMenu;
menuItem -l "MY_LABEL" -c "python(\"import myModule; myModule.myCmd()\")" -p 
$gOutlinerPopupMenu;

So everytime the Outliner is first created, my custom script get loaded and 
adds stuff to the Outliner menu.

Hope it helps.
Richard


On Friday, October 7, 2011 1:19:35 PM UTC-3, thirstydevil wrote:
>
> I have a itemFilter that is hiding some transforms and their shape in 
> the default outliner.  I can install the filter quite easily through 
> script to the outliner.  But how do I get the filter to play nicely 
> with all the other combinations of filters the user can choose in the 
> outliner? 
>
> Effectively I want my itemFilter to run last and just filter out the 
> current view and be visible in the show menu of the outliner. 
>
> Digging through the mel files :( I found - 
>
>         //  Invoke any user supplied code. This callback is published 
> and 
>         //  needs to remain consistent in future versions of Maya. 
>         // 
>         if (exists ("outlinerEdMenuUserCallback") ) 
>         { 
>                 // Use catchQuiet in case no callback is supplied, we 
> don't want that to 
>                 // show an error 
>                 catchQuiet( eval("source \"outlinerEdMenuUserCallback 
> \"") ); 
>
>         } 
>
> Anyone got experience with this? 
>
> Cheers 
>
> -Dave 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/bc53aff4-5eaa-40f8-9e50-efd5b3498802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to