Skip to content

Commit 36e58cb

Browse files
committed
LiveSceneHolder: Add liveScene() to construct a LiveScene from C++ without requiring the knob (UI only + Python binding).
1 parent 85ed978 commit 36e58cb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/IECoreNuke/LiveSceneHolder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class IECORENUKE_API LiveSceneHolder : public DD::Image::GeoOp
5757
virtual void knobs( DD::Image::Knob_Callback f );
5858
virtual const char *Class() const;
5959
virtual const char *node_help() const;
60+
IECoreNuke::LiveScenePtr liveScene();
6061

6162
private :
6263

src/IECoreNuke/LiveSceneHolder.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
#include "IECoreNuke/LiveSceneKnob.h"
3838

39+
#include "IECoreScene/SceneInterface.h"
40+
3941
using namespace IECoreNuke;
4042

4143
const DD::Image::Op::Description LiveSceneHolder::g_description( "ieLiveScene", build );
@@ -70,3 +72,8 @@ const char *LiveSceneHolder::node_help() const
7072
{
7173
return "Holds cortex live scene on the \"scene\" knob.";
7274
}
75+
76+
IECoreNuke::LiveScenePtr LiveSceneHolder::liveScene()
77+
{
78+
return new IECoreNuke::LiveScene( this );
79+
}

0 commit comments

Comments
 (0)