Skip to content

Instantly share code, notes, and snippets.

View ilayshp's full-sized avatar

Ilya ilayshp

  • freelance
  • Saint-Petersburg, Russia
View GitHub Profile
@ilayshp
ilayshp / node_test_c.cc
Created March 21, 2019 07:09
[capi] node creation, add connection in xpresso, c4d
{
BaseDocument *doc = GetActiveDocument();
BaseObject *obj = (BaseObject *) doc->GetActiveObject();
if(!obj) return FALSE;
XPressoTag *xTag = (XPressoTag*)obj->GetTag(Texpresso, 0);
if(!xTag) return FALSE;
GvNodeMaster *nm = xTag->GetNodeMaster();
@ilayshp
ilayshp / node_test.py
Created March 21, 2019 07:07
[python] node creation, add connection in xpresso, c4d
import c4d
def main():
global vecoutp
obj = doc.GetActiveObject()
tag = doc.GetActiveTag()
if not tag:
tag = c4d.BaseTag(c4d.Texpresso)
obj.InsertTag(tag)