Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Update target data

    Scheduled Pinned Locked Moved PYTHON Development
    10 Posts 0 Posters 802 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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 👏

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        c4d.EventAdd()

        Should work

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              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), ...).

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

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

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

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

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

                  Sounds like a priority issue.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

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

                    Originally posted by xxxxxxxx

                    Sounds like a priority issue.

                    😊👏😊

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

                    TY!

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      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?

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        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!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post