p2or / blender-loom

image sequence rendering, encoding and playback
175 stars 10 forks source link

Filename, counting #95

Closed SheikMorris closed 2 months ago

SheikMorris commented 2 months ago

Thank you for this great addon. I have a small question, I have 1 camera used in the scene and marker name on timeline frames for example banana, watermelon, apple, strawberry, etc.

I will use "$MARKER"

This will nicely export the images by name on the timeline - that's fine. It just automatically creates a numbering after the marker name

banana0001 watermelon0002 apple0003 strawberry0004

I would like just marker names without numbers at the end.

Is it possible?

Thank you, Martin

p2or commented 2 months ago

Hi @SheikMorris,

thanks for your request. As of the current state, removing the frame number from the file name is not possible. Would be easy to implement, but this would introduce many drawbacks especially with regard to the uniqueness of each frame, e.g. What if you accidentally named the marker of frame 1 the same as the marker of frame 10? In worst case, you would have wait another hour for frame 1 because it has been overwritten by frame 10. I totally understand why you need this and why it would save you time. However, as you can see from the example given, it is not an easy decision to support that as this potentially wastes a lot of time and energy as well.

From my point of view, it is safest to remove the frame number after all images have been rendered either by using e.g. a shell script or python add-on for Blender. As a proof of concept, the following extension for Loom allows to press CtrlShiftAltF2 and removes the frame numbers from all files within a given folder: loom_post-render-rename.py - you can install it like a regular add-on, extract the archive, in Blender open up User Preferences > Addons, click Install from File, select loom_post-render-rename.py and activate it usual:

Screenshot 2024-09-10 at 12 55 34

Does this help? If you have a better idea, all suggestions are welcome.

Cheers, Christian