Message 1 of 1
Menu item not loading second time

Not applicable
10-23-2012
04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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()