Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. iluxa7k
    3. Best
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Best posts made by iluxa7k

    RE: Creating Xpresso Python Node Inputs

    Hello

    onId = c4d.DescID(c4d.DescLevel(3999,400006001,1022471))
    
    posted in Cinema 4D SDK •
    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 •
    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 •