New OM not updating with DrawViews()



  • 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



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



  • 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



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


Log in to reply