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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    New OM not updating with DrawViews()

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 388 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 04/10/2006 at 16:15, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R10 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Howdy,

      I just downloaded the R10 demo and I see that the Object Manager does not update when a CommandData plugin calls DrawViews() to update. I have a CommandData plugin that inserts an object into the document and in R9 an prior, calling DrawViews() at the end of the command's Execute() function would update the OM so the object appears. Now in R10 demo it does not update the OM. The object appears in the viewport but not the OM until I click on something else.

      In the R10 demo, DrawViews() works from a ToolData plugin but not a CommandData plugin

      How do you now update the OM when using a CommandData?

      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 04/10/2006 at 17:38, xxxxxxxx wrote:

        Hello Dan,

        Include something like this with DrawViews() for tools:

        GeSyncMessage(EVMSG_TOOLCHANGED);

        Since the other is not a tool, best to check the docs (?) or resource folder to see what EVMSG_ types are available in R10 (or already) for this.

        I'm way too busy with orders, customer support, and update preparations to even think about thinking about R10 yet. 😉 They picked a lousy time for this release (though not wholely unexpected). My plugin has only been out for just over two weeks - still working out the chinks.

        Take care,

        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 04/10/2006 at 23:18, xxxxxxxx wrote:

          Howdy,

          Well, thanks anyway, but I found something else that works:
          EventAdd(EVENT_FORCEREDRAW);

          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 04/10/2006 at 23:40, xxxxxxxx wrote:

            That'll work, but the GeSyncMessage() will update 'interactively' (show changes as they happen). Maybe EventAdd() will do the same in this case. Whatever floats your boat (as far from water as you may be). 🙂

            Take care,

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