I'm developing a plugin for c4d that will need to retrieve various information from the currently loaded scene then export that data to a json that can later be retrieved. I've tried a few different methods of doing this, but no luck yet. The information i'm trying to get is: from frame, to frame, and the base of the filename(not present in the code below).
doc = documents.GetActiveDocument()
rd = doc.GetActiveRenderData()
fromSlice = rd[c4d.RDATA_FRAMEFROM]
toSlice = rd[c4d.RDATA_FRAMETO]
any guidance would be appreciated, thanks in advance