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

    A Freeze expresso node in COFFEE ?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 370 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 05/12/2008 at 14:29, xxxxxxxx wrote:

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

      ---------
      Hello ,
      I'm looking for an equivalent to the expresso freeze node in COFFEE . Can you help me with the function to use please ?
      I was trying to store a matrix , only when a boolean checkbox is activated .
      thx by advance
       
      clement

      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 06/12/2008 at 02:33, xxxxxxxx wrote:

        I've thaught I could use a basecontainer , but it doesn't want to get me the matrix stored ( it gives me a 0 matrix ( the "preset" one I guess )
        first I did  var bc = new(Basecontainer) ... then   bc->SetData(1,mat); ....  and then I call bc->GetMatrix(1) ;    .. but the result is matrix [ 0,0,0,0 ]
        maybe there is a boolean storage function like the freeze node ?

        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 06/12/2008 at 09:03, xxxxxxxx wrote:

          Howdy,

          Well, I'm not sure how you do it in coffee, but normally you would store values in an object's or tag's BaseContainer, instead of a "new" BaseContainer, and it's recommended to only use object or tag BaseContainer ID's from 1000 and up, because there can be internal data stored in ID's below 1000 that you would overwrite.

          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 08/12/2008 at 05:37, xxxxxxxx wrote:

            With the COFFEE node you have to use a global variable, not very elegant but it works.

            Copy this into the COFFEE node, Switch is the boolean input, Value the value (or your matrix) and Output the output.

            > \> var temp; \> \> main() \> { \>      if(!Switch) \>      { \>           temp = Value; \>           Output = Value; \>      } \>      else Output = temp; \> } \>

            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 08/12/2008 at 06:35, xxxxxxxx wrote:

              ok thank you guys 🙂 !
              cheers                                                                                                                                               clement

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