Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. iluxa7k
    3. Best
    I
    • Profile
    • Following 0
    • Followers 2
    • Topics 8
    • Posts 37
    • Best 3
    • Controversial 0
    • Groups 0

    Best posts made by iluxa7k

    • RE: GV Node AddPort fail

      Hello
      Same here for python. Even check by AddPortIsOK(), says True, not adding

      I also test c++ code, it adds to object operator(like topic master wants) but does not to nodemaster and no connect

      {
          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(); 
      
          GvNode *n1 = nm->GetRoot();
          GvPort *p1;
          if (n1->AddPortIsOK(GV_PORT_OUTPUT,40000002))
          {
      	    p1 = n1->AddPort(GV_PORT_OUTPUT, 40000002, GV_PORT_FLAG_IS_VISIBLE, TRUE);
      	    print("True"); 
          }
          else
          {
      	    print("False"); 
          }
            
          GvPort *p3 = n1->AddPort(GV_PORT_OUTPUT, 536870935, GV_PORT_FLAG_IS_VISIBLE, TRUE);
          
          GvNode *n2 = nm->CreateNode(nm->GetRoot(), ID_OPERATOR_OBJECT, NULL, 0, 0);
          GvPort *p2 = n2->AddPort(GV_PORT_OUTPUT, 40000002, GV_PORT_FLAG_IS_VISIBLE, TRUE);
      
          if (p1 && p2)
          {
              GvNode *n1u = NULL;
              GvNode *n2u = NULL;
              GvPort *p1u = NULL;
              GvPort *p2u = NULL;
              if (nm->IsConnectionValid(n1, p1, n2, p2, n1u, p1u, n2u, p2u))
              {
                n2->AddConnection(n1, p1, n2, p2);
              }
           }
          n1->Message(MSG_UPDATE);
          n2->Message(MSG_UPDATE);
          nm->Message(MSG_UPDATE);
      
          EventAdd();
      }
      
      posted in Cinema 4D SDK
      I
      iluxa7k
    • RE: [python] SetFont not working

      @m_adam said in [python] SetFont not working:

      In which version are you? The code I posted is working nicely in R20.059.

      20.059. Before i tried any methods, that's my fail. Not work for me. From new start of c4d. - it works

      posted in Cinema 4D SDK
      I
      iluxa7k
    • RE: Creating Xpresso Python Node Inputs

      Hello

      onId = c4d.DescID(c4d.DescLevel(3999,400006001,1022471))
      
      posted in Cinema 4D SDK
      I
      iluxa7k