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

    Beginner question

    SDK Help
    0
    7
    591
    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
      Helper
      last edited by

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

      On 25/05/2004 at 01:49, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello to all !! I'm new here !!
      I'm learning Coffee and i have just a beginner question: i want insert one primitive object by coffee language !
      How i make this ?
      Tnx in advance !! 🙂 _
      _

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

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

        On 25/05/2004 at 01:56, xxxxxxxx wrote:

        var cube = new(CubeObject); //Create a cube primitive
        if(!cube) return; //If the cube object wasn´t created then stop
        var doc = GetActiveDocuement(); //Get the active scene / document
        if(!doc) return;
        doc->InsertObject(cube,NULL,NULL); //Insert the cube into the scene
        GeEventAdd(NEW_ACTIVE_OBJECT);
        ----------------------
        This should work. Download the COFFEE SDK for more information. It´s absolutely necessary to learn COFFEE. It´s here in the plugincafe.
        Have fun

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

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

          On 25/05/2004 at 02:01, xxxxxxxx wrote:

          Tnx for the answer Samir !! 🙂
          The COFFEE SDK that u refer is for 6.3 ?
          I have seen that more instructions isn't compatible with 8.5 ver. !
          Is right ?

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

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

            On 25/05/2004 at 07:22, xxxxxxxx wrote:

            yes that´s correct. Some are not compatible but most of them are still working fine.

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

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

              On 25/05/2004 at 08:10, xxxxxxxx wrote:

              Yep !!
              This from COFFEE sdk don't work into 8.5!!
              // Creates a cube that's 200x100x300
              var cube = new(PrimitiveObject);
              cube->SetPrimitiveType(PRIMITIVE_CUBE);

              var bc = cube->GetContainer();
              bc->SetData(PRIM_CUBE_LEN, vector(200, 100, 300));
              cube->SetContainer(bc);

              Where i found the correct instructions ?
              Tnx in advance for the answer !! 🙂

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

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

                On 25/05/2004 at 17:32, xxxxxxxx wrote:

                Please search the forum for "PrimitiveObject" and you'll find a list of threads dealing with this issue. (The example in the C.O.F.F.E.E. SDK is valid, iirc, in C4D R7 and earlier.)

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

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

                  On 25/05/2004 at 23:35, xxxxxxxx wrote:

                  Tnx Mikael !!
                  I have found more documentations !!
                  Tnx again!!

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