Moderator: aoktar
BaseContainer *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));
usitnikov wrote:Can you please write it on python, if it possible.
aoktar wrote:BaseContainer *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));
3080400 is 3.08.4
4000016 is V4.00.0-RC6
renderer_id = documents.GetActiveDocument().GetActiveRenderData()[c4d.RDATA_RENDERENGINE]
a = documents.GetActiveDocument().GetDataInstance()
b = a.GetContainerInstance(renderer_id)
b.GetLong(c4d.SET_OCTANE_VERSION, -1)
a = documents.GetActiveDocument().GetDataInstance()
b = a.GetContainerInstance(1029499)
b.GetLong(c4d.SET_OCTANE_VERSION, -1)
usitnikov wrote:
- Code: Select all
a = documents.GetActiveDocument().GetDataInstance()
b = a.GetContainerInstance(1029499)
b.GetLong(c4d.SET_OCTANE_VERSION, -1)
Work for me, thx.
Users browsing this forum: Bing [Bot] and 31 guests