Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Blender: Refactor to new publisher#5910

Merged
simonebarbieri merged 93 commits intoynput:developfrom
BigRoy:enhancement/blender_new_publisher
Nov 15, 2023
Merged

Blender: Refactor to new publisher#5910
simonebarbieri merged 93 commits intoynput:developfrom
BigRoy:enhancement/blender_new_publisher

Conversation

@BigRoy
Copy link
Copy Markdown
Collaborator

@BigRoy BigRoy commented Nov 14, 2023

Changelog Description

Refactor Blender integration to use the new publisher

Additional info

Thanks to tremendous effort by @Sharkitty there's a big start, you can actually make valid publishes already!

There are todos however:

  • Convert legacy instances
  • Fix #TODO statements
  • Refactor Load Blend to use new style creator creation for rigs
  • Clear up what Create Review "asset_group" pre_create_data should be doing
  • Animation Creator should maybe be a HiddenCreator? Animation instances in Blender seem to be much simpler than in Maya so they are easier to create; also loading rigs doesn't automatically create an animation instance yet it seems. So I believe they should remain visible.

And some additional things to test/validate they work as intended:

  • Persist instance + context data correctly on saves (toggle states in publisher should work on reset and scene re-open)
  • All validators should report PublishValidationErrors
  • All creators/publishers should still work
  • Optional settings should still work

Testing notes:

  1. Launch Blender
  2. Use new publisher
  3. Break it and report issues here!

Tested Publish types:

  • Action - sidenote: There's a known bug from prior to this PR that loading action does not work.
  • Animation
  • BlendScene
  • Camera
  • Layout
  • Model
  • Pointcache
  • Render
  • Review
  • Rig

@iLLiCiTiT
Copy link
Copy Markdown
Member

Shouldn't the "Subsets" word be replaced in the new GUI by "Products", to match Ayon's Web App ?

Unrelated to this PR (and people working on it).

@BigRoy
Copy link
Copy Markdown
Collaborator Author

BigRoy commented Nov 14, 2023

UIs will now pop up to the front if they are behind another window or were minimized - I kept searching for e.g. the loader or publisher, this resolves it in Blender. Checked with @simonebarbieri and decided to put it in this PR. 🤞

@BigRoy
Copy link
Copy Markdown
Collaborator Author

BigRoy commented Nov 14, 2023

That'd be a quick one if this is ready now! 🌪️ 🔥

@BigRoy BigRoy requested a review from iLLiCiTiT November 14, 2023 16:47
@simonebarbieri
Copy link
Copy Markdown
Contributor

UIs will now pop up to the front if they are behind another window or were minimized - I kept searching for e.g. the loader or publisher, this resolves it in Blender.

This works! 🎉

@simonebarbieri
Copy link
Copy Markdown
Contributor

Animation instances in Blender seem to be much simpler than in Maya so they are easier to create; also loading rigs doesn't automatically create an animation instance yet it seems. So I believe they should remain visible.

Sorry I missed this edit! Animations are created when loading a layout with rigs, not just rigs! This was done because of the original workflow that we had in mind, that was more "Blender -> Unreal". Now it can be used to also export Alembic, which actually work within Blender, (and theoretically blend, but it doesn't work and not because of this PR), so it can be kept visible :)
In general I think the animation family needs a serious rework in the future, when we have time 😅

- `asset_group` is a Collection and can't be selected, and thus not exported from so we now take the 'root' node in that collection
@BigRoy
Copy link
Copy Markdown
Collaborator Author

BigRoy commented Nov 15, 2023

@LiborBatek @simonebarbieri was there anything else - do we need a final test run before merging?

@LiborBatek
Copy link
Copy Markdown
Member

@LiborBatek @simonebarbieri was there anything else - do we need a final test run before merging?

Lets do last round of tests...will inform what are the findings asap!

Copy link
Copy Markdown
Contributor

@simonebarbieri simonebarbieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @LiborBatek is still finishing some tests, so let's wait for his review as well, but for I've tested more or less everything and it works great!

Great job @BigRoy and @Sharkitty ! :)

@LiborBatek LiborBatek self-requested a review November 15, 2023 16:50
Copy link
Copy Markdown
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested both in legacy OP and Ayon mode and all good!!

Great job everyone who involved in this PR!!

@simonebarbieri simonebarbieri merged commit a53e949 into ynput:develop Nov 15, 2023
@ynbot ynbot added this to the next-patch milestone Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community contribution host: Blender module: Deadline AWS Deadline related features size/L Denotes a PR changes 1000-1499 lines, ignoring general files type: enhancement Enhancements to existing functionality type: refactor Structural changes not affecting functionality

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants