PyAPI requirements for Blender Studio Asset Pipeline #112392

Open
opened 2023-09-14 19:07:56 +02:00 by Demeter Dzadik · 0 comments
Member

In this task I'd like to keep track of some PyAPI functions that we would need for the production of the next open movie to hopefully go a lot smoother than previous ones.

What's the Blender Studio Asset Pipeline?

This is our add-on for allowing artists to collaborate on different aspects of an asset, by taking data from different files and combining them into one.
Each artist has their own .blend file with a copy of a given asset. The add-on keeps track of what data is owned by each file.
When running a Sync operation, data owned by other artists is pulled into the current file, and data owned by the current file is pushed to a shared file that should only be accessed by the add-on.
The granularity of data ownership is such that each vertex group, UVMap, shape key, etc. has a unique owner.

As you can imagine, this means we need a lot of data transfer functionality between objects; Objects whose topology is allowed to change. (In those cases, a perfect transfer is not expected, just a best effort.)

Existing API calls that need improvement

  • 🟠 Copying UV Maps (object.join_uvs): This only works if the geometry is a perfect match. We have Python code for a best effort transfer of non-matching topology, which I think would be a good addition to Blender's core functionality. Would also be covered by Attribute Proximity Transfer mentioned below.
  • 🟠 Managing Material Slots: API is confusing and doesn't work in some cases. #112391, #99996

Missing API calls

  • 🟢 Flag for whether a linked ID is missing: We got it!
  • 🟢 Override Resync without bpy.ops d6ae841806
  • 🟠 Copying drivers and their contents from one object to another. (like via UI right click->Copy/Paste driver) #111276
  • 🟠 Copying modifiers and their properties from one object to another.
  • 🟠 Data Transfer without bpy.ops: bpy.ops.object.data_transfer is a useful and flexible operator, but we really need it to be available without bpy.ops. Using bpy.ops requires us to make sure the objects are visible, which is super difficult on a production asset due to the myriad ways that objects can be hidden in Blender.
  • 🟠 Shape Keys Proximity Transfer: The same way we can transfer Vertex Groups, or any other geometry data, we need to be able to transfer Shape Keys, even without matching topology, and without bpy.ops.
  • 🔴 Attribute Proximity Transfer (without bpy.ops): A function just like the mentioned Mesh Data Transfer, but for all types and domains of Attributes.
In this task I'd like to keep track of some PyAPI functions that we would need for the production of the next open movie to hopefully go a lot smoother than previous ones. ### What's the Blender Studio Asset Pipeline? This is our add-on for allowing artists to collaborate on different aspects of an asset, by taking data from different files and combining them into one. Each artist has their own .blend file with a copy of a given asset. The add-on keeps track of what data is owned by each file. When running a Sync operation, data owned by other artists is pulled into the current file, and data owned by the current file is pushed to a shared file that should only be accessed by the add-on. The granularity of data ownership is such that each vertex group, UVMap, shape key, etc. has a unique owner. As you can imagine, this means we need a lot of data transfer functionality between objects; Objects whose topology is allowed to change. (In those cases, a perfect transfer is not expected, just a best effort.) ### Existing API calls that need improvement - 🟠 Copying UV Maps (`object.join_uvs`): This only works if the geometry is a perfect match. We have Python code for a best effort transfer of non-matching topology, which I think would be a good addition to Blender's core functionality. Would also be covered by Attribute Proximity Transfer mentioned below. - 🟠 Managing Material Slots: API is confusing and doesn't work in some cases. https://projects.blender.org/blender/blender/issues/112391, https://projects.blender.org/blender/blender/issues/99996 ### Missing API calls - 🟢 Flag for whether a linked ID is missing: [We got it!](https://docs.blender.org/api/master/bpy.types.ID.html#bpy.types.ID.is_missing) - 🟢 Override Resync without bpy.ops https://projects.blender.org/blender/blender/commit/d6ae84180642e9b07ecf2b131e9febea5b1cd2e4 - 🟠 Copying drivers and their contents from one object to another. (like via UI right click->Copy/Paste driver) https://projects.blender.org/blender/blender/issues/111276 - 🟠 Copying modifiers and their properties from one object to another. - 🟠 Data Transfer **without bpy.ops**: `bpy.ops.object.data_transfer` is a useful and flexible operator, but we really need it to be available without bpy.ops. Using bpy.ops requires us to make sure the objects are visible, which is super difficult on a production asset due to the myriad ways that objects can be hidden in Blender. - 🟠 Shape Keys Proximity Transfer: The same way we can transfer Vertex Groups, or any other geometry data, we need to be able to transfer Shape Keys, even without matching topology, and without bpy.ops. - 🔴 Attribute Proximity Transfer (without bpy.ops): A function just like the mentioned Mesh Data Transfer, but for all types and domains of Attributes.
Demeter Dzadik added the
Type
Design
label 2023-09-14 19:07:56 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112392
No description provided.