Does COFFEE have an equivalent to AtomArray?



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

    On 25/06/2010 at 07:47, xxxxxxxx wrote:

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

    ---------
    Howdy,

    Is there a way to store objects in an array in a coffee script?

    Adios,
    Cactus Dan



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

    On 25/06/2010 at 14:52, xxxxxxxx wrote:

    No that I knew of. Maybe it works if you "chain" the objects using their BaseList2D capabilities (BaseList2D::InsertAfter()).

    Cheers,
    Jack



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

    On 25/06/2010 at 16:57, xxxxxxxx wrote:

    Howdy,

    OK, I may have found something. Under Types, there is an array type:

    {array}

    Definition
    The array type in C.O.F.F.E.E. can contain any kind of variable or object reference. Arrays can be one-, two- or three-dimensional.

    It may take some extra coding to get it to work, though.

    Adios,
    Cactus Dan



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

    On 26/06/2010 at 05:12, xxxxxxxx wrote:

    Why are you fumbling around with Coffee, anyway?



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

    On 26/06/2010 at 05:26, xxxxxxxx wrote:

    Howdy,

    Well, sometimes my clients ask me to write a quick script to automates tasks, especially if they're working with an imported file that has hundreds of objects that need to be processed, which would take them days of work doing it by hand.

    Adios,
    Cactus Dan



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

    On 26/06/2010 at 06:46, xxxxxxxx wrote:

    I'd still do it in C++ ;-)



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

    On 26/06/2010 at 09:52, xxxxxxxx wrote:

    C++ is so much more powerful but for small/fast scripts COFFEE is so much better.
    Inside the Script Manager or through a COFFEE tag you can code your script and automatically test it, without waiting for compilation and having to restart Cinema4D.



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

    On 26/06/2010 at 15:20, xxxxxxxx wrote:

    Howdy,

    Yeah, I really prefer C++ over COFFEE. But when the client wants me to knock it out in about an hour, and it's simple enough that a COFFEE script can handle it, I'll go ahead and use COFFEE.

    Adios,
    Cactus Dan



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

    On 28/06/2010 at 06:36, xxxxxxxx wrote:

    COFFEE has only a simple array type which can hold any object type. It does not offer appending or removing of elements though.

    cheers,
    Matthias



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

    On 30/06/2010 at 21:42, xxxxxxxx wrote:

    Especially when you need something really simple to work in 4 versions of C4D on both Mac and Windows, 'simple' isn't a phrase synonymous with C++ (VS, Xcode, CodeWarrior, api lib builds, etc. and so on and so forth).  TGFPy4D!!!!!!! :)


Log in to reply