How to detect octane version
Posted: Tue Oct 16, 2018 12:01 pm
Hi guys, i can't found how get octane version from cinema4d python API, can you please help me in this question? 

Community Forums for OTOY Customers
https://render.otoy.com/forum/
3080400 is 3.08.4BaseContainer *bc = mDoc->GetDataInstance();
BaseContainer *sceneBC = bc->GetContainerInstance(ID_OCTANE_LIVEPLUGIN);
version = sceneBC ->GetLong(SET_OCTANE_VERSION, -1);
if(version>0 && version<PLG_VERSION) info("Scene created in plugin version "+LS(version));
Sorry not have time but you get it as start point.usitnikov wrote:Can you please write it on python, if it possible.
I try this, not work.aoktar wrote:3080400 is 3.08.4BaseContainer *bc = mDoc->GetDataInstance();
BaseContainer *sceneBC = bc->GetContainerInstance(ID_OCTANE_LIVEPLUGIN);
version = sceneBC ->GetLong(SET_OCTANE_VERSION, -1);
if(version>0 && version<PLG_VERSION) info("Scene created in plugin version "+LS(version));
4000016 is V4.00.0-RC6
Code: Select all
renderer_id = documents.GetActiveDocument().GetActiveRenderData()[c4d.RDATA_RENDERENGINE]
a = documents.GetActiveDocument().GetDataInstance()
b = a.GetContainerInstance(renderer_id)
b.GetLong(c4d.SET_OCTANE_VERSION, -1)
Code: Select all
a = documents.GetActiveDocument().GetDataInstance()
b = a.GetContainerInstance(1029499)
b.GetLong(c4d.SET_OCTANE_VERSION, -1)
Here I defined the easiest ways for this and more....usitnikov wrote:Work for me, thx.Code: Select all
a = documents.GetActiveDocument().GetDataInstance() b = a.GetContainerInstance(1029499) b.GetLong(c4d.SET_OCTANE_VERSION, -1)