Menu item not loading second time

Menu item not loading second time

Anonymous
Not applicable
232 Views
0 Replies
Message 1 of 1

Menu item not loading second time

Anonymous
Not applicable
how is it possible to make a python plugin to run from menu item successfully repeatedly.

At present it runs the first time. second time it does not run. Following is the code being called
from menu item by this script usersetup.py ( attached )

import maya.cmds as cmds

class fwRLayer():
if not cmds.pluginInfo("fwRenderLayer.py",query=1,loaded=1):
cmds.loadPlugin('fwRenderLayer.py')
cmds.fwRenderLayer()
0 Likes
233 Views
0 Replies
Replies (0)