Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
feat: add better video frame indices support
Browse files Browse the repository at this point in the history
  • Loading branch information
werwack committed May 24, 2022
1 parent 2e5a92f commit 5ab1b81
Show file tree
Hide file tree
Showing 12 changed files with 292 additions and 198 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
],
"blender.addon.sourceDirectory": "./stampinfo",
"restructuredtext.confPath": "${​​​​​​​​workspaceFolder}​​​​​​​​\\docs",
"esbonio.sphinx.confDir": ""
"esbonio.sphinx.confDir": "${​​​​​​​​workspaceFolder}​​​​​​​​\\docs"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 1.2.1 (2022-05-24)

- Add a property to specify the time context to use for the output images indices
- Add a property to set the start frame on video (videoFirstFrameIndex)
- Add a property to control the number of digits in the frame numbers (frameDigitsPadding)

- Add-on Preference property named mediaFirstFrameIsZero has been removed, it is now
advantageously replaced by videoFirstFrameIndex

# 1.1.2 (2022-05-11)

- Fix on the get latest release version path
Expand Down
2 changes: 1 addition & 1 deletion stampinfo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"author": "Julien Blervaque (aka Werwack) - Ubisoft",
"description": "Stamp scene information on the rendered images",
"blender": (3, 1, 0),
"version": (1, 1, 2),
"version": (1, 2, 1),
"location": "View3D > Stamp Info",
"wiki_url": "https://ubisoft-stampinfo.readthedocs.io",
"tracker_url": "https://github.com/ubisoft/stampinfo/issues",
Expand Down
10 changes: 1 addition & 9 deletions stampinfo/addon_prefs/addon_prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from stampinfo.utils import utils
from stampinfo.utils.utils_os import get_latest_release_version

from ..config import config
# from ..config import config

from stampinfo.config import sm_logging

Expand Down Expand Up @@ -91,14 +91,6 @@ def initialize_stamp_info_prefs(self):
default=False,
)

mediaFirstFrameIsZero: BoolProperty(
name="Output Media First Frame is 0",
description="If checked (most common approach) then the first frame of the output\nmedia has index 0 (last then have index (seq. number of frames - 1).\n"
"If not checked then it has index 1 and the last frame has the index equal to the media duration",
default=True,
options=set(),
)

write_still: BoolProperty(
name="Write rendered still images on disk",
description="If checked then writes rendered still images on disk.\n"
Expand Down
2 changes: 0 additions & 2 deletions stampinfo/addon_prefs/addon_prefs_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

from stampinfo.config import config
from stampinfo.ui.dependencies_ui import drawDependencies
from stampinfo.utils.utils_ui import collapsable_panel

##################################################################################
# Draw
Expand All @@ -38,7 +37,6 @@ def draw_addon_prefs(self, context):
row = box.row()
row.separator(factor=3)
subCol = row.column()
subCol.prop(self, "mediaFirstFrameIsZero")
subCol.prop(self, "write_still")

layout.separator(factor=0.5)
Expand Down
Loading

0 comments on commit 5ab1b81

Please sign in to comment.