Set RenderData framerate causing C4D to crash
-
Hi,
use bellow code will causing C4D to crashimport c4d doc: c4d.documents.BaseDocument # The currently active document. op: c4d.BaseObject | None # The primary selected object in `doc`. Can be `None`. def main() -> None: rd = c4d.documents.RenderData() rd[c4d.RDATA_FRAMERATE] = 2.0 if __name__ == '__main__': main()
safe setting code:
rd = c4d.documents.RenderData() data = rd.GetDataInstance() data[c4d.c4d.RDATA_FRAMERATE] = 2.0
bug?
-
Hi @chuanzhen,
The issue is not reproducible on my machine with C4D: 2025.2.1 (Build 2025_2_1_10be3ac9d371_1759753353) Win
Cheers,
Ilia -
@i_mazlov there is video, 2025.2.1,win11
-
Hi I was able to reproduce the issue and fix it for the next version.
The bug is that setting RDATA_FRAMERATE require the RenderData to be part of a document in case the "Use Project Frame Rate" is enabled on the render settings. If this is enabled and this is enabled by default the value you enter will be disregarded. "Use Project Frame Rate" is a new setting added in 2025.2.I will ping you once the fix is available.
Cheers,
Maxime. -