from mtoa.core import createOptions
def set_motion_blur(switch):
mtoa.core.createOptions()
if switch == "on":
cmds.setAttr("defaultArnoldRenderOptions.motion_blur_enable", 1)
cmds.setAttr("defaultArnoldRenderOptions.ignoreMotionBlur" ,1)
cmds.setAttr("defaultArnoldRenderOptions.range_type", 0)
cmds.setAttr("defaultArnoldRenderOptions.motion_frames" ,1)
elif switch == "off":
cmds.setAttr("defaultArnoldRenderOptions.motion_blur_enable", 0)
cmds.setAttr("defaultArnoldRenderOptions.ignoreMotionBlur" ,0)
cmds.setAttr("defaultArnoldRenderOptions.range_type", 1)
cmds.setAttr("defaultArnoldRenderOptions.motion_frames" ,0.5)
set_motion_blur("on")
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme