Issues with some Animation Files #41

Closed
opened 2023-05-08 19:45:08 +02:00 by Nick Alberelli · 4 comments
Member

Issue

From @Andy

hey! are you around? I have a request regarding the shot files in 050...

i noticed that the anim files were a bit garbled and started cleaning them. but maybe you could take a look for me instead and find out an automated way? I dont know exactly when it happened... most of the shots in 050 seem to be built before the shot builder was hooked up to pets

FYI I'm going through all the anim files in 050 and trying to fix them. currently all the assets are duplicated and named .001. I probably cannot fix that, but will make sure that everything is linked to the output collection so we can at least build the lighting files properly. edit: might be able to fix the broken names

Issues Found

  • Un-used Collections linked into Output Collection
  • Naming Conventions broken in Scene, Collection or Action names
  • Linked Assets created "OVERIDE HIDDEN" Collections
  • Need to Crawl Files and run Operators

Addons

Scripts

# Issue From @Andy > hey! are you around? I have a request regarding the shot files in 050... > i noticed that the anim files were a bit garbled and started cleaning them. but maybe you could take a look for me instead and find out an automated way? I dont know exactly when it happened... most of the shots in 050 seem to be built before the shot builder was hooked up to pets > FYI I'm going through all the anim files in 050 and trying to fix them. currently all the assets are duplicated and named .001. I probably cannot fix that, but will make sure that everything is linked to the output collection so we can at least build the lighting files properly. edit: might be able to fix the broken names ### Issues Found - Un-used Collections linked into Output Collection - Naming Conventions broken in Scene, Collection or Action names - Linked Assets created "OVERIDE HIDDEN" Collections - Need to Crawl Files and run Operators # Addons - [[Blender_Kistu] Output Collection in some sequences contains extra collections #36](https://projects.blender.org/studio/blender-studio-pipeline/issues/36) - [[Blender_Kistsu] Collections, Scenes, and Actions break naming convention #37](https://projects.blender.org/studio/blender-studio-pipeline/issues/37) - [[Blender_Kitsu] Add Operator to Cleanup "OVERRIDE HIDDEN" Collections #39](https://projects.blender.org/studio/blender-studio-pipeline/issues/39) ## Scripts - [Adapt Blender Purge Script to Crawl many files and run Arbitrary Commands #40](https://projects.blender.org/studio/blender-studio-pipeline/issues/40)
Nick Alberelli changed title from Crawl Animation Files and fix bad data to Issues with some Animation Files 2023-05-08 19:45:51 +02:00
Nick Alberelli added the
Kind
Bug
Kind
Breaking
Kind
Studio Request
labels 2023-05-08 19:45:59 +02:00
Author
Member

Solving most of this in #38

Solving most of this in https://projects.blender.org/studio/blender-studio-pipeline/pulls/38
Author
Member

With this PR #38, following script can be run on each animation file to ensure it ensure it's correctly set:

import bpy

bpy.ops.kitsu.con_detect_context()
bpy.ops.kitsu.anim_enforce_naming_convention()
bpy.ops.kitsu.anim_check_action_names()
bpy.ops.kitsu.unlink_collection_with_string()
for suffix in [".001", ".002", ".003"]:
     bpy.ops.kitsu.anim_enforce_naming_convention(find_replace=True, remove_str=suffix )
bpy.ops.kitsu.anim_update_output_coll()
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
bpy.ops.wm.save_mainfile()
bpy.ops.wm.revert_mainfile()

TODO

With this PR https://projects.blender.org/studio/blender-studio-pipeline/pulls/38, following script can be run on each animation file to ensure it ensure it's correctly set: ```python import bpy bpy.ops.kitsu.con_detect_context() bpy.ops.kitsu.anim_enforce_naming_convention() bpy.ops.kitsu.anim_check_action_names() bpy.ops.kitsu.unlink_collection_with_string() for suffix in [".001", ".002", ".003"]: bpy.ops.kitsu.anim_enforce_naming_convention(find_replace=True, remove_str=suffix ) bpy.ops.kitsu.anim_update_output_coll() bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True) bpy.ops.wm.save_mainfile() bpy.ops.wm.revert_mainfile() ``` ### TODO - [ ] Adapt [Blender-Purge](https://projects.blender.org/studio/blender-studio-pipeline/issues/40) to run above script
Author
Member

I was able to manually open every file and run the above script. In the future I still want to setup.

  • Adapt Blender-Purge to run above script

I will close this issue and leave that for this issue #40

I was able to manually open every file and run the above script. In the future I still want to setup. - [ ] Adapt Blender-Purge to run above script I will close this issue and leave that for this issue https://projects.blender.org/studio/blender-studio-pipeline/issues/40
Author
Member

Closed by #38

Closed by https://projects.blender.org/studio/blender-studio-pipeline/pulls/38
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-pipeline#41
No description provided.