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

    Does COFFEE have an equivalent to AtomArray?

    Scheduled Pinned Locked Moved SDK Help
    10 Posts 0 Posters 825 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 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

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

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

          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 26/06/2010 at 05:12, xxxxxxxx wrote:

            Why are you fumbling around with Coffee, anyway?

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

              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 26/06/2010 at 06:46, xxxxxxxx wrote:

                I'd still do it in C++ 😉

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

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

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

                      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/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!!!!!!! 🙂

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