Hi guys!
Is it possible to convert string value to BaseTime with this function?
Converts a string to a data value of type float, int or c4d.BaseTime.
>>> c4d.utils.StringToNumber('11', c4d.FORMAT_FRAMES, doc.GetFps())
11.0
>>> c4d.utils.StringToNumber('11', c4d.FORMAT_SECONDS, doc.GetFps())
11.0
>>> c4d.utils.StringToNumber(11, c4d.FORMAT_FRAMES, doc.GetFps())
11.0
After some tests i had no luck with it.😬🤷♂️
>>> doc[c4d.DOCUMENT_MINTIME] = c4d.utils.StringToNumber('11', c4d.FORMAT_FRAMES, doc.GetFps())
Traceback (most recent call last):
File "console", line 1, in <module>
TypeError: __setitem__ expected c4d.BaseTime, not float
>>>
Thank you!