Asset Pipeline v2 #145
110
scripts-blender/addons/asset_pipeline_2/README.md
Normal file
110
scripts-blender/addons/asset_pipeline_2/README.md
Normal file
@ -0,0 +1,110 @@
|
||||
# Asset Pipeline
|
||||
|
||||
## Introduction
|
||||
This Add-On was designed to allow multiple artists to collaborate while contributing to a common Asset. It enables simultaneous work on the same asset by multiple artists. The add-on works by tracking what data each artist contributes to the asset and merges the assets together into a final "Published" asset. This published asset is marked to be discovered by Blender's asset manager.
|
||||
## Table of Contents
|
||||
<!-- TOC -->
|
||||
|
||||
- [Asset Pipeline](#asset-pipeline)
|
||||
- [Introduction](#introduction)
|
||||
- [Table of Contents](#table-of-contents)
|
||||
- [Installation](#installation)
|
||||
- [Key Concepts](#key-concepts)
|
||||
- [Creating New Assets](#creating-new-assets)
|
||||
- [Current File Mode](#current-file-mode)
|
||||
- [Blank File Mode](#blank-file-mode)
|
||||
- [Push/Pull](#pushpull)
|
||||
- [Updating Ownership](#updating-ownership)
|
||||
- [Save File](#save-file)
|
||||
- [Merge with Published File](#merge-with-published-file)
|
||||
- [Surrendering Ownership](#surrendering-ownership)
|
||||
- [Publish New Version](#publish-new-version)
|
||||
- [Active](#active)
|
||||
- [Staged](#staged)
|
||||
- [Review](#review)
|
||||
|
||||
<!-- /TOC -->
|
||||
|
||||
## Installation
|
||||
1. Download [latest release](../addons/overview)
|
||||
2. Launch Blender, navigate to `Edit > Preferences` select `Addons` and then `Install`
|
||||
3. Navigate to the downloaded add-on and select `Install Add-on`
|
||||
|
||||
|
||||
## Key Concepts
|
||||
**Task Layers** Task Layers are defined in a JSON file that describes the number of layers used to manage the asset. Typically each task layer is given it's own file, artists can optionally house multiple task layers inside the same file if required. Each task layer is used to describe a step in the asset making process (e.g."Modeling", "Rigging", "Shading"). The number and content of a task layer is fully customizable by the artist.
|
||||
|
||||
**Ownership** Each piece of data in the Asset Pipeline is owned by a task layer, this includes Objects, Task Layer Collections and Transfer Data. The owner of data is the only person who can contribute to that piece of data, including modifying or removing that data. Objects implicitly will own the meshes and other types of object data, multiple objects referencing the same mesh is not supported.
|
||||
|
||||
**Asset Collection** Is the top-level collection for a given asset, all relevant objects/sub-collections for the asset are contained within this collection.
|
||||
|
||||
**Task Layer Collection** These collections are children of the asset collection, each Task Layer collection is owned by a specific task layer, they are all top-level child collections to the Asset Collection. Children of the Task Layer collections are owned by the Task Layer collection's owner.
|
||||
|
||||
**Transfer Data** Is data that a part or associated with an object or mesh, but can be explicitly owned and updated. This is the key concept that allows multiple artists to contribute to an asset. During the Push/Pull process transfer data is applied on top of each object, allowing artist A to own an object but artist B to own the vertex groups on that object for example.
|
||||
|
||||
Transfer Data Types:
|
||||
- Vertex Groups
|
||||
- Modifiers
|
||||
- Constraints
|
||||
- Materials (including slots, index and the material IDs)
|
||||
- ShapeKeys
|
||||
- Attributes
|
||||
- Parent Relationships
|
||||
|
||||
**Shared IDs** Shared IDs are data-blocks that can be owned by many 'users'. This data type is limited to Geometry Node Groups and Images, these are pieces of data that need to be explicitly owned by a task layer, and only that task layer may update this data-block, but other task layers may reference this data-block.
|
||||
|
||||
|
||||
## Creating New Assets
|
||||
Once the add-on is installed you will be greeted by a new sidebar in the 3D View, titled 'Asset Pipeline'. Under the panel 'Asset Management' you will find a UI to set up a new Asset. The New Asset UI has two modes "Current File" and "Blank File".
|
||||
|
||||
### Current File Mode
|
||||
"Current File" mode will retain you current .blend file's data and allow you to use it's current directory to setup a new Asset.
|
||||
To setup an asset using "Current File" mode, please open the file you would like to setup as an asset, then select "Current File" mode in the asset pipeline side panel in the 3D View.
|
||||
|
||||
1. Select the "Task Layer Preset" you would like to use.
|
||||
2. Select the collection to be the Asset Collection, this is the top level collection for your asset.
|
||||
3. Select 'Create New Asset'
|
||||
4. In the operator pop-up select which task layers will be local to your file, typically artists only select one.
|
||||
5. Ensure 'Create Files for Unselected Task Layers' is enabled, otherwise the add-on will not automatically create files for the other task layers.
|
||||
6. Press OK to set-up current file/folder as an Asset. The add-on will automatically create a published file, this file will be empty until you push to it.
|
||||
|
||||
|
||||
### Blank File Mode
|
||||
"Blank File" mode will create a new blank asset in a new directory named after your asset.
|
||||
|
||||
1. Select the "Task Layer Preset" you would like to use.
|
||||
2. Enter the name and prefix desired for your asset
|
||||
3. Select 'Create New Asset'
|
||||
4. In the operator pop-up select which task layers will be local to your file, typically artists only select one.
|
||||
5. Ensure 'Create Files for Unselected Task Layers' is enabled, otherwise the add-on will not automatically create files for the other task layers.
|
||||
6. Press OK to set-up current file/folder as an Asset. The add-on will automatically create a published file, this file will be empty until you push to it.
|
||||
|
||||
|
||||
## Push/Pull
|
||||
The Push/Pull process happens in three steps.
|
||||
|
||||
### 1. Updating Ownership
|
||||
When you Push/Pull a file, you will be greeted with an operator dialogue. This dialogue will list any new data that it has found in your file. Pressing OK will assign these new pieces of data to your local task layer, if you have multiple local task layers, you will be able to select which one is the owner of each piece of data. Once completed this information will be used to ensure your work is merged properly with the published file.
|
||||
|
||||
### 2. Save File
|
||||
The add-on will optionally save your current file plus any unsaved/unpacked images will be saved in a directory relative to your asset (configurable in the add-on preferences). It will always create a back-up of your current file, in the case where the merge process fails, you will be prompted to revert your file back to it's pre-merge status.
|
||||
|
||||
### 3. Merge with Published File
|
||||
Push and Pull are merging operations done to/from the published file. When you want to share your updated work to the rest of the team select "Push to Publish" to update the published file with your changes. Push will update any Transfer data you edited, and update any objects/collections you own with the version in your current file. Transfer Data owned by other artists will be re-applied to your objects.
|
||||
|
||||
If another artist then uses the "Pull to Publish" operator the same process will occur, keeping all objects, collections and transfer data that is local to their file, and importing any data that was owned externally by other task layers.
|
||||
|
||||
## Surrendering Ownership
|
||||
In the ownership inspector each Object/Transfer Data item has an option to "surrender" that piece of data. When surrendering this piece of data is now "up for grabs" to all other task layers. After surrendering artists will need to push this update to the published file. The surrendered item's ownership indicator will be replaced by an "Update Surrendered" operator, this operator is available to all task layers except the one that surrendered that data. When another task layer pulls in from the publish, they will be able to run the "Update Surrendered" operator to claim it assigning it to that task layer.
|
||||
|
||||
## Publish New Version
|
||||
To Publish a new version of an asset select the "Publish New Version" operator. The operator dialogue will require an input on which publish type to create. Publish types are as follows.
|
||||
|
||||
### Active
|
||||
An active publish is a publish that can be referenced by the production into shot files, multiple version can be published if some shots require an older version of the current asset, but only a single asset will be updated with changes from the push/pull target.
|
||||
|
||||
### Staged
|
||||
A staged asset, is an publish that cannot be referenced by the production, only one staged asset can exist at a time. If a staged publish exists it will replace the active publish as the push/pull target. The staged area exists so artists can collaborate on a new version of an asset that is not ready to be used in production.
|
||||
|
||||
### Review
|
||||
A review publish is simple a way to test out the final published version of your asset. You can create as many review publishes as you want to check your work and ensure the merge process produces results that are expected. Review publish is never used as a push/pull target and is for testing only.
|
Loading…
Reference in New Issue
Block a user