check if cinema still redraws



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/06/2004 at 08:00, xxxxxxxx wrote:

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

    ---------
    Hi!
    I want to prevent my users from hitting the action button in my plugin when cinema redraws the document.
    The Core Message

    EVMSG_DOCUMENTRECALCULATE seems to be the right one but how can I check whether it is set or not?
    
    Wanna do a while - loop to check whether it is still redrawing or not...
    
    thx,
    
    lawn
    


  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 29/06/2004 at 15:44, xxxxxxxx wrote:

    Does nobody know? It should be a common problem...



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 30/06/2004 at 21:16, xxxxxxxx wrote:

    It isn't possible to detect whether the editor is being redrawn, since that happens in a thread. If you tried to check it there would be a race condition.
    Perhaps the solution is to call StopAllThreads() in your action? (Or tell the user not to press it when the editor is being drawn?) What is it that you want to prevent?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/07/2004 at 02:03, xxxxxxxx wrote:

    I want to prevent him from makin my plugin update objects of the scene but I got a solution!
    in GeDialog::Message I can react on Core Messages.
    There I simply set a global variable of my Dialog and that's enough. Because my Calls to the Modification system via Java Native Interface (my core code is in java...) are very slow, there's now no problem any more...
    Thank you anyway...


Log in to reply