mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Update openpype/hosts/maya/plugins/publish/validate_arnold_scene_source_cbid.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
eaac0cb2e7
commit
60de2b537f
1 changed files with 10 additions and 6 deletions
|
|
@ -37,12 +37,16 @@ class ValidateArnoldSceneSourceCbid(pyblish.api.InstancePlugin):
|
|||
|
||||
invalid_couples = []
|
||||
for content_name, content_node in content_nodes_by_name.items():
|
||||
for proxy_name, proxy_node in proxy_nodes_by_name.items():
|
||||
if content_name == proxy_name:
|
||||
content_value = cmds.getAttr(content_node + ".cbId")
|
||||
proxy_value = cmds.getAttr(proxy_node + ".cbId")
|
||||
if content_value != proxy_value:
|
||||
invalid_couples.append((content_node, proxy_node))
|
||||
proxy_node = proxy_nodes_by_name.get(content_name, None)
|
||||
|
||||
if not proxy_node:
|
||||
self.log.debug("Content node '{}' has no matching proxy node.".format(content_node))
|
||||
continue
|
||||
|
||||
content_id = lib.get_id(content_node)
|
||||
proxy_id = lib.get_id(proxy_node)
|
||||
if content_id != proxy_id:
|
||||
invalid_couples.append((content_node, proxy_node))
|
||||
|
||||
return invalid_couples
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue