mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Discard vray proxies and aistandin from same variable.
This commit is contained in:
parent
94cd27fbc2
commit
9c9a1c0839
1 changed files with 4 additions and 2 deletions
|
|
@ -250,7 +250,7 @@ class MayaLookAssignerWindow(QtWidgets.QWidget):
|
|||
if vp in nodes:
|
||||
vrayproxy_assign_look(vp, subset_name)
|
||||
|
||||
nodes = list(set(item["nodes"]).difference(vray_proxies))
|
||||
nodes = list(set(nodes).difference(vray_proxies))
|
||||
else:
|
||||
self.echo(
|
||||
"Could not assign to VRayProxy because vrayformaya plugin "
|
||||
|
|
@ -260,10 +260,12 @@ class MayaLookAssignerWindow(QtWidgets.QWidget):
|
|||
# Assign Arnold Standin look.
|
||||
if cmds.pluginInfo("mtoa", query=True, loaded=True):
|
||||
arnold_standins = set(cmds.ls(type="aiStandIn", long=True))
|
||||
|
||||
for standin in arnold_standins:
|
||||
if standin in nodes:
|
||||
arnold_standin.assign_look(standin, subset_name)
|
||||
nodes = list(set(item["nodes"]).difference(arnold_standins))
|
||||
|
||||
nodes = list(set(nodes).difference(arnold_standins))
|
||||
else:
|
||||
self.echo(
|
||||
"Could not assign to aiStandIn because mtoa plugin is not "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue