Start working on scene usd/en — различия между версиями

Материал из Voronezh.Studio Wiki
Перейти к: навигация, поиск
Строка 98: Строка 98:
 
|-
 
|-
 
| style="width:50%;" |
 
| style="width:50%;" |
<div class="mw-translate-fuzzy">
+
For this purpose we store a special [[Wref Resolver|wref]] context in the Maya scene applied both in Maya and in USD. This [[Wref Resolver|wref]] context update the wref path to a physical path on disk.<br>
For this purpose we store a special [[Wref Resolver|wref]] context in the Maya scene applied both in Maya and in USD. This [[Wref Resolver|wref]] context update the wref path to a physical path on disk.
 
</div><br>
 
 
<div class="mw-translate-fuzzy">
 
<div class="mw-translate-fuzzy">
 
To change versions and pin them easily there is a special UI, '''Wizart Animation => USD => Wref Context Manager'''.
 
To change versions and pin them easily there is a special UI, '''Wizart Animation => USD => Wref Context Manager'''.

Версия 20:21, 20 апреля 2020

Другие языки:
English • ‎русский

So, you need to start working on an animation scene. The process of opening the scene is a little different from what you might have seen on other projects.
We use Pixar's USD format to store anim_prep (scene layout prepared for animators), so you won't be able to open the scene as usual.
Also a link to anim_prep scene is live, so when layout team add new assets to the anim_prep scene, they will also appear in your animation scene.
To do this, we use a plugin from Animal Logic, AL_USDmaya, with our inhouse modifications.

How to build scene?

You only need to follow this procedure the first time you open a scene, after building and saving, you will be able to open the scene as usual.

1. Always start building a new scene with empty scene, then select Wizart Animation => USD => Start From Anim Prep from the menu.

Start from anim prep menu.png

2. A dialog box will appear where you need to select the name of the Episode and the name of the Scene you want to start working on.

Start from anim prep diag.png

3. Then click Import.
After a successful Import, you can save the scene to your working folder, and then you can open and save the scene as usual.

As a result of Import operation will be created:

  • A Proxy Shape object AL_USDmaya will be created with a link to the latest version of the USD scene via wref.
  • The Frame Range from the USD scene.
  • A link to the latest version of the sound will be created as a may reference via wref.
  • Will automatically be put down in the scene pin on the Wref Context of all Maya's rigs. This means that you will need to switch the rig versions explicitly through The Wref Context Manager,
    if needed. All other files referenced in scene we don't pin, so latest available versions will be loaded.
Warning Warning In any case, do not manually correct the path to the files, it can break the entire pipeline. If you have a problem with the scene, please email support.



Working with the USD scene

The entire scene is loaded as a USD Proxy, and a minimum number of maya nodes are created.
Characters have no rig loaded at the start, but they should be displayed in the starting position.
To see the real hierarchy of the scene, you need to open USD Outliner. To do this, select Wizart Animation => USD => AL USD Outliner.

Al usd outliner menu.png

The created panel can be docked to Maya's UI.

Maya dock usd outliner.gif

In the beginning, you need to decide on which characters or items you need to load rig.
It may not be all assets, for example, the assetin this scene is static, or the supervisor animator has given you the task to animate only certain assets.
To switch the asset from cache to rig, select the asset in USD Outliner, and right-click in the context menu Variants=>animDisplayVariant=>rig.
This will download the maya reference onto the asset, and it will have to move to the same location as it was set in the USD scene.

Usd outliner switch rig variant.gif
Warning Warning Asset references are now managed by the AL_USDmaya plugin, and the Department that prepares anim_prep. If your scene is missing an asset, contact support.
Warning Warning Since this plugin controls the creation and on/off of references, in no case can you use the Reference Editor and edit references manually. This can lead to crashes.



Activate & Deactivate


When creating animations, manipulations are made with just a few objects. Most of the scene may be idle at this stage. Processing all scene objects may slow performance.

To solve this problem, USD prims have an attribute Active. Prims are active by default, which means they and their active children will be composed and visited by stage traversals. By making a prim inactive, we prevent the prim itself from being visited by default traversals, and we also prevent the prim's descendant prims from even being composed on the stage.

USD Outliner has two commands for working with the Active attribute: Activate and Deactivate.

The Deactivate command changes the value of the Active attribute, making the prim inactive. Thus, the prim, as well as their children that may be contained in it, will be filtered out during processing.

The name of the inactive prim will be strike out. All children of this prim will also be inactive and will be excluded from the list.


The Activate command makes prim and his children active again, if necessary.

ActivateDeactivate.gif
ActivateDeactivate.gif

Working with Wref Context Manager

All paths in the scene, including USD Layers, Maya references, texture paths have a wref format. Such paths usually doesn't include reference to a specific version of the asset and normally you do not need to change this in the process. However, animator's work may require to define version explicitly:

  • For example, when you start working on a scene, you want to pin the rig versions for a current scene, so that you can take a newer version while working on another scene.
  • You have found some technical issue in the rig, and want to update version of the rig to a newer one in the scene explicitly and locally not breaking anything else.

For this purpose we store a special wref context in the Maya scene applied both in Maya and in USD. This wref context update the wref path to a physical path on disk.

To change versions and pin them easily there is a special UI, Wizart Animation => USD => Wref Context Manager.

In the appearing window you can pin on certain wref paths to pin the current versions. Also there you can switch to the desired version and pin it, remove pin, or update to the latest.

  • The Version column displays the current version of the file used in the scene.
  • If this version is pinned, the icon in the Pin column is set to: Wref cm pin.png
  • If the path has no pinned version, the icon in the Pin column is set to: Wref cm unpin.png

Wref context manager menu.png

Закрепление версии / Pin

  • В столбце Version отображается текущая версия файла, используемая в сцене.
  • Если эта версия закреплена (pin), то значок в колонке Pin установлен в положение: Wref cm pin.png
  • Если для пути не закреплена версия, то значок в колонке Pin, установлен в положение: Wref cm unpin.png

Wref context manager window.PNG

Warning Важно Если в wref пути указана конкретная версия и при этом назначен pin, то приоритет будет за значением pin'а.
  • Зафиксировать версию можно введя нужное значение в колонке Version.
  • Второй способ закрепить(pin) версию - выделить одну или несколько строк, правой кнопкой мыши вызвать контекстное меню и выбрать пункт Pin.

Wref cm context menu pin.png

Обновление до последней версии / Unpin

Обновить версию до последней, открепив (unpin) версию можно так:
  • выделить одну или несколько строк,
  • правой кнопкой мыши вызвать контекстное меню и выбрать пункт Unpin.
Wref cm context menu unpin.png
Warning Важно Если в wref пути не указано версии и не назначен pin, то версия файла будет обновляться автоматически до последней.

Обновление до последней версии с закреплением

С помощью пункта контекстного меню Update to latest можно обновить версию пути до последней на данный момент и закрепить её (pin устанавливается автоматически).
Wref cm context menu update.png

Настройка вывода данных

Фильтр по типам файлов

В меню Show можно отфильтровать пути по расширению:

  • USD файлы (.usd, .usda, .usdc),
  • Maya файлы (.mb, .ma)
  • Другие Файлы.

Wref cm menu show.png

Обновление содержимого

Кнопкой Refresh Wref cm refresh.png можно обновить окно Wref Context Manager после перезагрузки сцены.

Отображение физического пути

Физический путь на файл с текущими настройками контекста можно посмотреть в столбце Resolved.
По-умолчанию столбец скрыт, показать его можно следующим образом: контекстное меню по заголовку таблицы => Show/Hide Resolved.


Wref cm header context menu.png


Working with the camera in USD scene

You can import a camera rig into a scene if you need to attach an object to the camera, freeze the camera movement, or hide the camera from the viewport.

1. Select AL USD Outliner from the Wizart Animation menu.

Camera 0.png

2. Select the camera and activate its rig. Now you can mute its movement, or constraints to it any object.

Camera rig.gif

If you need to hide the camera in a scene, you can find it through the Outliner in Maya and hide it there using the Ctrl + H keys (use Shift + H to display the camera).

Camera hide.gif