Beginner question



  • 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 !! :) _
    _



  • 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



  • 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 ?



  • 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.



  • 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 !! :)



  • 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.)



  • 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!!


Log in to reply