Update target data



  • On 24/01/2017 at 06:01, xxxxxxxx wrote:

    Hello great people 😄

    I am editing the parameter "target" into a costrain tag (parent mode) and all works fine but doesn't really update in the sceene.  
    I try with MSG_UPDATE and MSG_CHANGE but no result.  
      
    Any suggestion?  
      
    Ty all  
    

    l 👏



  • On 24/01/2017 at 06:26, xxxxxxxx wrote:

    c4d.EventAdd()

    Should work



  • On 24/01/2017 at 06:30, xxxxxxxx wrote:

    No i try but c4d.EventAdd() doesn't work



  • On 24/01/2017 at 06:45, xxxxxxxx wrote:

    import c4d
      
      
    def main() :
        tag = doc.GetActiveTag()
        obj_next = tag.GetObject().GetNext()
        tag[30001] = obj_next
        c4d.EventAdd()
      
    if __name__=='__main__':
        main()
    

    For me everything is working correctly using c4d.EventAdd()



  • On 25/01/2017 at 06:18, xxxxxxxx wrote:

    Hi Davide,

    did the posted solution work for you?
    Otherwise you will have to provide us with some more details. Where are you trying to do this (script, plugin (which type, in which function), ...).



  • On 25/01/2017 at 06:29, xxxxxxxx wrote:

    This is a python tag so i can't use c4d.EventAdd()



  • On 25/01/2017 at 08:07, xxxxxxxx wrote:

    Sounds like a priority issue.



  • On 25/01/2017 at 08:11, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Sounds like a priority issue.

    😊👏😊

    yeeeeeeeeeeeeeees!!!!!!!!!!!!!!!!!!!!!!

    TY!



  • On 27/01/2017 at 04:41, xxxxxxxx wrote:

    Hi,

    I'm not sure, how to interpret your last post, Davide. Is your issue fixed by changing the priority of the Python tag?



  • On 27/01/2017 at 04:49, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Hi,

    I'm not sure, how to interpret your last post, Davide. Is your issue fixed by changing the priority of the Python tag?

    Problem solved, priority issue!


Log in to reply