Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Coffee -> get Redraw in Object Manager ?

    SDK Help
    0
    4
    112
    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 07/12/2006 at 02:47, xxxxxxxx wrote:

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

      ---------
      how can i force an OBJECT to be "REDRAWN" in the OBJECT MANAGER?

      for example after i set the visible in render bit...

      CoreMessage() ?
      Message() ?

      op->Message(MSG_UPDATE); - > does not work 😞

      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 07/12/2006 at 03:52, xxxxxxxx wrote:

        I have experienced some of that also. Some things do update correctly in R9 but not always in R10.
        We are waiting for the R10 SDK to see if anything might have changed.

        What does work is:
        EventAdd() , but on a running expression it tolls the document (updateing for anything happening at all times)

        What can be done is to make a "if" statement.
        So if a specific value is not true (or false) then you can use EventAdd().

        Lennart

        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 07/12/2006 at 07:10, xxxxxxxx wrote:

          could you explain that a little bit deeper 🙂

          -> if i have a coffee expression just like this

          main(doc,op)
          {
              op->SetEditorMode(MODE_UNDEF);
          }

          -> how would you use EventAdd() ?

          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 07/12/2006 at 08:00, xxxxxxxx wrote:

            EventAdd(); stands "by it own". You only have to add it where you want it.
            It is more or less the same as hitting"A" on the keyboard, it refreshes the whole scene. That is way it might not be a good idea to have it active during playback, or you'll get "double animation".

            So get the state of your object before your Set(Value).
            (no real code, just an example of "thinking")

            var prestate = op->Get(Value);
            op->Set(Value);
            op->Message(MSG_UPDATE);
            var poststate = op->Get(Value);
            if(prestate != poststate) EventAdd();

            But please get the 9.5 HTML SDK Documentation, it is the easiest to read and to get a grasp of what's possible and have lots of primer material.

            Cheers
            Lennart

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