- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! I'm looking for a solution to the problem of plugins modifying default MEL scripts upon-installation.
Specifically, the global ones like updateAE.mel or unifiedRenderGlobals.mel that the renderers hook into for custom functionality.
This article outlines methodology on how to override / clobber the procedures but not to inherit the prior function to extend the head or tail of it.
Are you looking to rewrite some of our Maya default scripts? - Around the Corner (typepad.com)
In python it's super simple:
def globalFunc():
print('A globalFunc() called')
global_func = globalFunc
def localFunc():
print('B localFunc() called')
print('pre')
global_func()
print('post')
globalFunc = localFunc
globalFunc()
Results:
Is it possible to create mixin's like this for MEL global procedures?
And if there isn't a way to do that is there a way to get read access the global procedures in plain text so they can be cached and executed within the override function?
Thank you for you time.
-Sean
Solved! Go to Solution.