following script runs once when called from maya -> menu -> menuItem.
However when clicking again it does not run.
What do i do to make it run again and again.
import maya.cmds as cmds
import maya.mel as mel
import maya.utils as utils
mel.eval('source "renderLayerBuiltinPreset.mel"')
mel.eval('source "createMentalRayIndirectLightingTab.mel"')
from _python import renderLayerCreate
from _python import setInternals
class renderLayer():
def __main__(self):
objsetInt = setInternals.setInternals()
objsetInt.evalInt()
obj1 = renderLayerCreate.renderLayerCreate()
obj1.wu()
aaa = renderLayer()
aaa.__main__()
- is app scope applicable in this case.
- will making it a plugin in python help
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe