Coffee -> get Redraw in Object Manager ?



  • 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 :(



  • 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



  • 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() ?



  • 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


Log in to reply