On 14/10/2015 at 20:25, xxxxxxxx wrote:
You might find my description site useful, it doesn't have the ID numbers but it does show the define you use to allocate the node, but I may add the ID number soon as well.
As an example the Mograph Cloner can be found here...
http://dev.gamelogicdesign.com/Description/Node?containerName=Omograph_cloner
And it shows near the bottom how to create it via C++ and Python like so
#include "../mograph/description/omograph_cloner.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Omograph_cloner);
pDoc->InsertObject(pObject);
pDoc->StartUndo();
pDoc->AddUndo(UNDO_NEW,pObject);
pDoc->EndUndo();
EventAdd(EVENT_FORCEREDRAW);
}
You can search the description page for "mograph" to find the other objects.
http://dev.gamelogicdesign.com/Description/NodesByType
Might also be nice if I organised them via module type as well. Maybe at some point.
Hope this helps,
bar