cloner don't refresh

On 26/05/2018 at 18:55, xxxxxxxx wrote:

Ran into the same thing today. It looks like the cloner updates. If you click on something else in the OM and then click the clone again the panel updates. It would be nice if we could call for a refresh in the script.

On 28/05/2018 at 01:56, xxxxxxxx wrote:

This issue has been addressed with Cinema 4D R19. Since then you can send the needed MSG_DESCRIPTION_CHECKUPDATE via Python.
So in a script changing the mode of a MoGraph cloner looks like so:Ö

    cloner[c4d.ID_MG_MOTIONGENERATOR_MODE] = 2  # set desired mode
    # send message MSG_DESCRIPTION_CHECKUPDATE for proper update
    msg = {}
    msg['doc'] = doc
    msg['drawflags'] = 0
    msg['descid'] = c4d.DescID(c4d.ID_MG_MOTIONGENERATOR_MODE)
    cloner.Message(c4d.MSG_DESCRIPTION_CHECKUPDATE, msg)

On 28/05/2018 at 10:35, xxxxxxxx wrote:

cool! I'll give that a try. Thanks for the script.