
How to detect octane version
Moderators: ChrisHekman, aoktar
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
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Sorry not have time but you get it as start point.usitnikov wrote:Can you please write it on python, if it possible.
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
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)
Any body can help me?
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)
viewtopic.php?f=87&t=56039&start=10#p348597
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw