mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge pull request #5143 from ynput/bugfix/OP-6161_Maya-Ass-loader-for-model-family-errors-out-if-the-files-are-extracted-from-other-dccs
This commit is contained in:
commit
f58c414f04
1 changed files with 8 additions and 2 deletions
|
|
@ -35,9 +35,15 @@ class ArnoldStandinLoader(load.LoaderPlugin):
|
||||||
color = "orange"
|
color = "orange"
|
||||||
|
|
||||||
def load(self, context, name, namespace, options):
|
def load(self, context, name, namespace, options):
|
||||||
|
if not cmds.pluginInfo("mtoa", query=True, loaded=True):
|
||||||
|
cmds.loadPlugin("mtoa")
|
||||||
|
# Create defaultArnoldRenderOptions before creating aiStandin
|
||||||
|
# which tries to connect it. Since we load the plugin and directly
|
||||||
|
# create aiStandin without the defaultArnoldRenderOptions,
|
||||||
|
# we need to create the render options for aiStandin creation.
|
||||||
|
from mtoa.core import createOptions
|
||||||
|
createOptions()
|
||||||
|
|
||||||
# Make sure to load arnold before importing `mtoa.ui.arnoldmenu`
|
|
||||||
cmds.loadPlugin("mtoa", quiet=True)
|
|
||||||
import mtoa.ui.arnoldmenu
|
import mtoa.ui.arnoldmenu
|
||||||
|
|
||||||
version = context['version']
|
version = context['version']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue