Skip to content

Collect Writes fails if there are more leading zeroes in file sequence #155

@jrsndl

Description

@jrsndl

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Description

Current Behavior

Currently, when publishing with slate for a first time, and templates frame padding is set higher then number of digits of the start frame, Collect Write fails.

Steps To Reproduce:

  1. Frame padding set to 5
Image 2. Publish from Nuke, shot range 1001-1010, slate 1000 3. Collect Writes validator fails, 'cause frame_start_index is None

Additional context:

Version

server 1.10.1, ayon-core 1.6.1, nuke 0.3.12

What platform were you running when you found the bug?

Windows 10

You can also provide any additional information relevant to the issue.

Relevant log output:

Traceback (most recent call last):
File "C:\Users\john.doe\AppData\Local\Ynput\AYON\dependency_packages\ayon_2502101448_windows.zip\dependencies\pyblish\plugin.py", line 528, in __explicit_processrunner(*args)
File "C:\Users\john.doe\AppData\Local\Ynput\AYON\addons\nuke_0.3.12\ayon_nuke\plugins\publish\collect_writes.py", line 53, in process self._set_existing_files_data(instance, colorspace)
File "C:\Users\john.doe\AppData\Local\Ynput\AYON\addons\nuke_0.3.12\ayon_nuke\plugins\publish\collect_writes.py", line 81, in _set_existing_files_data representation = self._get_existing_frames_representation(
File "C:\Users\john.doe\AppData\Local\Ynput\AYON\addons\nuke_0.3.12\ayon_nuke\plugins\publish\collect_writes.py", line 288, in _get_existing_frames_representation collected_frames = self._add_slate_frame_to_collected_frames(
File "C:\Users\john.doe\AppData\Local\Ynput\AYON\addons\nuke_0.3.12\ayon_nuke\plugins\publish\collect_writes.py", line 383, in _add_slate_frame_to_collected_frames
slate_frame = collected_frames[frame_start_index].replace(
TypeError: list indices must be integers or slices, not NoneType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions