mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Failsafe for mtoa not loaded and user feedback.
This commit is contained in:
parent
1048f58db3
commit
214b76796c
1 changed files with 15 additions and 4 deletions
|
|
@ -251,12 +251,23 @@ class MayaLookAssignerWindow(QtWidgets.QWidget):
|
||||||
vrayproxy_assign_look(vp, subset_name)
|
vrayproxy_assign_look(vp, subset_name)
|
||||||
|
|
||||||
nodes = list(set(item["nodes"]).difference(vray_proxies))
|
nodes = list(set(item["nodes"]).difference(vray_proxies))
|
||||||
|
else:
|
||||||
|
self.echo(
|
||||||
|
"Could not assign to VRayProxy because vrayformaya plugin "
|
||||||
|
"is not loaded."
|
||||||
|
)
|
||||||
|
|
||||||
# Assign Arnold Standin look.
|
# Assign Arnold Standin look.
|
||||||
arnold_standins = set(cmds.ls(type="aiStandIn", long=True))
|
if cmds.pluginInfo("mtoa", query=True, loaded=True):
|
||||||
for standin in arnold_standins:
|
arnold_standins = set(cmds.ls(type="aiStandIn", long=True))
|
||||||
if standin in nodes:
|
for standin in arnold_standins:
|
||||||
arnold_standin.assign_look(standin, subset_name)
|
if standin in nodes:
|
||||||
|
arnold_standin.assign_look(standin, subset_name)
|
||||||
|
else:
|
||||||
|
self.echo(
|
||||||
|
"Could not assign to aiStandIn because mtoa plugin is not "
|
||||||
|
"loaded."
|
||||||
|
)
|
||||||
|
|
||||||
nodes = list(set(item["nodes"]).difference(arnold_standins))
|
nodes = list(set(item["nodes"]).difference(arnold_standins))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue