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
    • Recent
    • Tags
    • Users
    • Login

    Recreate an Xpresso setup COFFEE

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 290 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 30/05/2010 at 02:21, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   latest 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      Hi,
      I'm trying to recreate a simple Xpresso setup with COFFEE in which a spline stays pinned to a polygon mesh. My setup appears to be correct, but the spline in my COFFEE setup will only appear pinned to the polygon mesh when it's selected in the Object Manager in point mode.

      My C4D file is available at the link below and I've included some screengrabs of my setup. I would really appreciate it of somebody could tell me what I'm doing wrong...

      http://dl.dropbox.com/u/790386/XpressoVcoffee.c4d.zip

      [FLASH WIDTH=300 HEIGHT=200]http://dl.dropbox.com/u/790386/xpressoVcoffee.flv[/FLASH]

      http://dl.dropbox.com/u/790386/xpressoVcoffee.mov

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 30/05/2010 at 06:50, xxxxxxxx wrote:

        As in your other thread I've added what's needed.
        The global calculation and most important the Update
        Message. As stated in the SDK, when dealing with modifying
        , the Update is important

        Cheers
        Lennart

          
        main(doc,op)   
        {   
        var spline = doc->FindObject("Spline.1");   
        var pList = new(array,4);   
          
            pList[0] = 1;   
            pList[1] = 7;   
            pList[2] = 5;   
            pList[3] = 3;   
          
        var i;   
        var pointPos;   
          
        for(i=0; i< sizeof(pList); i++)   
        {   
           pointPos = op->GetPoint(pList[i]);   
           pointPos = op->GetMg()->GetMulP(pointPos); // Global positions   
          
           spline->SetPoint(i, pointPos);   
           spline->Message(MSG_UPDATE); // <- IMPORTANT   
        }   
        }   
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 30/05/2010 at 09:24, xxxxxxxx wrote:

          Thanks Lennart, I'm really grateful for your help. Gonna look into this now....

          1 Reply Last reply Reply Quote 0
          • First post
            Last post