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

Ftrack: Fill workfile in custom attribute #2906

Merged
merged 5 commits into from
Mar 18, 2022

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Mar 17, 2022

Brief description

Calculate work filename for tasks and fill the value into custom attribute in ftrack.

Description

The workfile name is filled with version 1, extension is kept as {ext} and possible host name is kept as {app}. The action is disabled by default. It is required to define which custom attribute should be filled. The custom attribute must be a text type attribute for Task entity type.

Changes

  • added ftrack acion into user actions that will fill workfile string into custom attribute
  • workfiles tool is using get_workdir_data from openpype.lib

Note

  • maybe the action should be server action?

Testing notes:

  1. Create any text custom attribute for Task entity type (e.g. with key workfile)
  2. Enable the action is project settings and set the custom attribute key to workfile
  3. Run the action on any project (OpenPype Admin > Fill workfile attribute)
  4. Values should be filled

@ynbot
Copy link
Contributor

ynbot commented Mar 17, 2022

Task linked: OP-2818 Workfile name ftrack attribute

@iLLiCiTiT iLLiCiTiT self-assigned this Mar 17, 2022
@iLLiCiTiT iLLiCiTiT added type: enhancement Enhancements to existing functionality module: Ftrack labels Mar 17, 2022
@iLLiCiTiT iLLiCiTiT merged commit 8e1ec6d into develop Mar 18, 2022
@iLLiCiTiT iLLiCiTiT deleted the enhancement/OP-2818_Workfile-name-ftrack-attribute branch March 18, 2022 12:27
@mkolar mkolar added this to the next milestone Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Ftrack type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants