@@ -26,6 +26,7 @@ class ValidateRenderRelativePaths(
2626 instead of the expected location.
2727
2828 """
29+
2930 label = "Validate Render Relative Paths"
3031 order = pyblish .api .ValidatorOrder
3132 families = ["render" ]
@@ -40,9 +41,9 @@ def process(self, instance: pyblish.api.Instance):
4041
4142 doc : c4d .documents .BaseDocument = instance .context .data ["doc" ]
4243 take_data = doc .GetTakeData ()
43- take : c4d .modules .takesystem .BaseTake = (
44- instance . data [ "transientData" ][ " take"]
45- )
44+ take : c4d .modules .takesystem .BaseTake = instance . data [ "transientData" ][
45+ " take"
46+ ]
4647 render_data , base_take = take .GetEffectiveRenderData (take_data )
4748 invalid : bool = False
4849
@@ -60,7 +61,7 @@ def process(self, instance: pyblish.api.Instance):
6061 # Multi-Pass image
6162 save_multipass_image : bool = render_data [c4d .RDATA_MULTIPASS_SAVEIMAGE ]
6263 if save_multipass_image :
63- token_path : str = render_data [c4d .RDATA_MULTIPASS_FILENAME ]
64+ token_path : str = render_data [c4d .RDATA_MULTIPASS_FILENAME ]
6465 if not os .path .isabs (token_path ):
6566 self .log .error (
6667 "Multi-Pass Image render output path is relative:\n "
@@ -71,13 +72,11 @@ def process(self, instance: pyblish.api.Instance):
7172 if invalid :
7273 raise PublishValidationError (
7374 "Please use an absolute path for render output." ,
74- description = self .get_description ()
75+ description = self .get_description (),
7576 )
7677
77-
7878 @classmethod
7979 def repair (cls , instance : pyblish .api .Instance ):
80-
8180 current_file = instance .context .data ["currentFile" ]
8281 if not current_file :
8382 raise RuntimeError (
@@ -89,9 +88,9 @@ def repair(cls, instance: pyblish.api.Instance):
8988
9089 doc : c4d .documents .BaseDocument = instance .context .data ["doc" ]
9190 take_data = doc .GetTakeData ()
92- take : c4d .modules .takesystem .BaseTake = (
93- instance . data [ "transientData" ][ " take"]
94- )
91+ take : c4d .modules .takesystem .BaseTake = instance . data [ "transientData" ][
92+ " take"
93+ ]
9594 render_data , base_take = take .GetEffectiveRenderData (take_data )
9695
9796 for key , label in RENDER_DATA_KEYS .items ():
@@ -119,4 +118,5 @@ def get_description(cls) -> str:
119118
120119 Use the 'Repair' action to convert relative paths to
121120 absolute paths based on the current Cinema4D project folder.
122- """ )
121+ """
122+ )
0 commit comments