use createOptions() for defaultArnoldRenderOptions

This commit is contained in:
Kayla Man 2023-06-19 21:57:30 +08:00
parent 00eab724a4
commit 3314c5f282

View file

@ -42,8 +42,10 @@ class ArnoldStandinLoader(load.LoaderPlugin):
# does not exist yet and some connections to the standin
# can't be correctly generated on create resulting in an error
cmds.loadPlugin("mtoa")
cmds.refresh(force=True)
maya.utils.processIdleEvents()
# create defaultArnoldRenderOptions for
# `defaultArnoldRenderOptions.operator``
from mtoa.core import createOptions
createOptions()
import mtoa.ui.arnoldmenu