-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Use 'folderPath' instead of 'asset' during publishing #81
Chore: Use 'folderPath' instead of 'asset' during publishing #81
Conversation
Should this line be asset_name=context.data["folderPath"], ?
|
Yes, well spotted (I missed this because of other changes). |
collect_workfile.py and collect_render.py in 3dsMax hosts have both |
I'm getting this in Blender:
EDIT: ah, I missed that @moonyuet already mentioned this! |
I had collapsed hosts when I've beek picking the lines to commit. Damn, should be fine now. ...I should not try to split the changes into multiple PRs in this case. |
@@ -68,7 +68,7 @@ def fill_missing_asset_docs(self, context, project_name): | |||
instances_with_missing_asset_doc = collections.defaultdict(list) | |||
for instance in context: | |||
instance_asset_doc = instance.data.get("assetEntity") | |||
_asset_name = instance.data["asset"] | |||
_asset_name = instance.data["folderPath"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also be refactoring the variable names here so it's clear that these are now folder paths? There are quite a few still referring to asset
and asset_name
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's what I have prepared. But I wanted to keep this PR as simple as possible. Change of variables can then happen in per-host PRs. I think there will be sometimes things to change, which is not goal of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traceback (most recent call last):
File "C:\Users\tokejepsen\AppData\Local\Ynput\AYON\dependency_packages\ayon_2402141620_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "C:\Users\tokejepsen\ayon-core\client\ayon_core\hosts\maya\plugins\publish\collect_render.py", line 310, in process
label = "{0} ({1})".format(layer_name, instance.data["asset"])
KeyError: 'asset'
Tested with 3dsmax, Looks okay now with all families.
|
Everything still works as usual in Houdini.
I found |
Tested in Substance Painter, works smoothly |
- Corrected a typo in a data key from "folferPath" to "folderPath". - Updated the variable name from "asset" to "asset_name".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in Houdini. Works as usual.
Thanks.
…-publishing # Conflicts: # client/ayon_core/hosts/max/plugins/publish/collect_workfile.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good in AE and PS
Changelog Description
Rename
"asset"
key used during publishing to"folderPath"
. This is first of many PRs changing asset naming to folder.Additional info
I think resolve, hiero and traypublisher might not be converted correctly. Please @jakubjezek001 test them and if you find and issue try to fix it.
Testing notes:
Ideal test scenario:
CelactionHarmonyTVpaintI do expect that hosts using Publisher tool should not have any issues. Possible issues are with hosts using pyblish pype, automated publishin login and editorial.