This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2435 from pypeclub/feature/validation_exceptions_…
…tvpaint TVPaint: Use new publisher exceptions in validators
- Loading branch information
Showing
21 changed files
with
411 additions
and
81 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
openpype/hosts/tvpaint/plugins/publish/help/validate_asset_name.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Subset context</title> | ||
<description>## Invalid subset context | ||
|
||
Context of the given subset doesn't match your current scene. | ||
|
||
### How to repair? | ||
|
||
Yout can fix this with "Repair" button on the right. This will use '{expected_asset}' asset name and overwrite '{found_asset}' asset name in scene metadata. | ||
|
||
After that restart publishing with Reload button. | ||
</description> | ||
<detail> | ||
### How could this happen? | ||
|
||
The subset was created in different scene with different context | ||
or the scene file was copy pasted from different context. | ||
</detail> | ||
</error> | ||
</root> |
22 changes: 22 additions & 0 deletions
22
openpype/hosts/tvpaint/plugins/publish/help/validate_duplicated_layer_names.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Layer names</title> | ||
<description>## Duplicated layer names | ||
|
||
Can't determine which layers should be published because there are duplicated layer names in the scene. | ||
|
||
### Duplicated layer names | ||
|
||
{layer_names} | ||
|
||
*Check layer names for all subsets in list on left side.* | ||
|
||
### How to repair? | ||
|
||
Hide/rename/remove layers that should not be published. | ||
|
||
If all of them should be published then you have duplicated subset names in the scene. In that case you have to recrete them and use different variant name. | ||
</description> | ||
</error> | ||
</root> |
20 changes: 20 additions & 0 deletions
20
openpype/hosts/tvpaint/plugins/publish/help/validate_layers_visibility.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Layers visiblity</title> | ||
<description>## All layers are not visible | ||
|
||
Layers visibility was changed during publishing which caused that all layers for subset "{instance_name}" are hidden. | ||
|
||
### Layer names for **{instance_name}** | ||
|
||
{layer_names} | ||
|
||
*Check layer names for all subsets in the list on the left side.* | ||
|
||
### How to repair? | ||
|
||
Reset publishing and do not change visibility of layers after hitting publish button. | ||
</description> | ||
</error> | ||
</root> |
21 changes: 21 additions & 0 deletions
21
openpype/hosts/tvpaint/plugins/publish/help/validate_marks.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Frame range</title> | ||
<description>## Invalid render frame range | ||
|
||
Scene frame range which will be rendered is defined by MarkIn and MarkOut. Expected frame range is {expected_frame_range} and current frame range is {current_frame_range}. | ||
|
||
It is also required that MarkIn and MarkOut are enabled in the scene. Their color is highlighted on timeline when are enabled. | ||
|
||
- MarkIn is {mark_in_enable_state} | ||
- MarkOut is {mark_out_enable_state} | ||
|
||
### How to repair? | ||
|
||
Yout can fix this with "Repair" button on the right. That will change MarkOut to {expected_mark_out}. | ||
|
||
Or you can manually modify MarkIn and MarkOut in the scene timeline. | ||
</description> | ||
</error> | ||
</root> |
18 changes: 18 additions & 0 deletions
18
openpype/hosts/tvpaint/plugins/publish/help/validate_missing_layer_names.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Missing layers</title> | ||
<description>## Missing layers for render pass | ||
|
||
Render pass subset "{instance_name}" has stored layer names that belong to it's rendering scope but layers were not found in scene. | ||
|
||
### Missing layer names | ||
|
||
{layer_names} | ||
|
||
### How to repair? | ||
|
||
Find layers that belong to subset {instance_name} and rename them back to expected layer names or remove the subset and create new with right layers. | ||
</description> | ||
</error> | ||
</root> |
14 changes: 14 additions & 0 deletions
14
openpype/hosts/tvpaint/plugins/publish/help/validate_render_pass_group.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Render pass group</title> | ||
<description>## Invalid group of Render Pass layers | ||
|
||
Layers of Render Pass {instance_name} belong to Render Group which is defined by TVPaint color group {expected_group}. But the layers are not in the group. | ||
|
||
### How to repair? | ||
|
||
Change the color group to {expected_group} on layers {layer_names}. | ||
</description> | ||
</error> | ||
</root> |
26 changes: 26 additions & 0 deletions
26
openpype/hosts/tvpaint/plugins/publish/help/validate_scene_settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Scene settings</title> | ||
<description>## Invalid scene settings | ||
|
||
Scene settings do not match to expected values. | ||
|
||
**FPS** | ||
- Expected value: {expected_fps} | ||
- Current value: {current_fps} | ||
|
||
**Resolution** | ||
- Expected value: {expected_width}x{expected_height} | ||
- Current value: {current_width}x{current_height} | ||
|
||
**Pixel ratio** | ||
- Expected value: {expected_pixel_ratio} | ||
- Current value: {current_pixel_ratio} | ||
|
||
### How to repair? | ||
|
||
FPS and Pixel ratio can be modified in scene setting. Wrong resolution can be fixed with changing resolution of scene but due to TVPaint limitations it is possible that you will need to create new scene. | ||
</description> | ||
</error> | ||
</root> |
14 changes: 14 additions & 0 deletions
14
openpype/hosts/tvpaint/plugins/publish/help/validate_start_frame.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>First frame</title> | ||
<description>## MarkIn is not set to 0 | ||
|
||
MarkIn in your scene must start from 0 fram index but MarkIn is set to {current_start_frame}. | ||
|
||
### How to repair? | ||
|
||
You can modify MarkIn manually or hit the "Repair" button on the right which will change MarkIn to 0 (does not change MarkOut). | ||
</description> | ||
</error> | ||
</root> |
19 changes: 19 additions & 0 deletions
19
openpype/hosts/tvpaint/plugins/publish/help/validate_workfile_metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Missing metadata</title> | ||
<description>## Your scene miss context metadata | ||
|
||
Your scene does not contain metadata about {missing_metadata}. | ||
|
||
### How to repair? | ||
|
||
Resave the scene using Workfiles tool or hit the "Repair" button on the right. | ||
</description> | ||
<detail> | ||
### How this could happend? | ||
|
||
You're using scene file that was not created using Workfiles tool. | ||
</detail> | ||
</error> | ||
</root> |
24 changes: 24 additions & 0 deletions
24
openpype/hosts/tvpaint/plugins/publish/help/validate_workfile_project_name.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<root> | ||
<error id="main"> | ||
<title>Project name</title> | ||
<description>## Your scene is from different project | ||
|
||
It is not possible to publish into project "{workfile_project_name}" when TVPaint was opened with project "{env_project_name}" in context. | ||
|
||
### How to repair? | ||
|
||
If the workfile belongs to project "{env_project_name}" then use Workfiles tool to resave it. | ||
|
||
Otherwise close TVPaint and launch it again from project you want to publish in. | ||
</description> | ||
<detail> | ||
### How this could happend? | ||
|
||
You've opened workfile from different project. You've opened TVPaint on a task from "{env_project_name}" then you've opened TVPaint again on task from "{workfile_project_name}" without closing the TVPaint. Because TVPaint can run only once the project didn't change. | ||
|
||
### Why it is important? | ||
Because project may affect how TVPaint works or change publishing behavior it is dangerous to allow change project context in many ways. For example publishing will not run as expected. | ||
</detail> | ||
</error> | ||
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.