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
    • Recent
    • Tags
    • Users
    • Login

    Tag Plugin seems to be executed too often...

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 590 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

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

      On 20/03/2010 at 12:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Rather by accident I found out that expression tags are basically executed in each mouseclick in numerous places, i.e.:

      - Materials
      - viewport
      - objects
      - tool switch

      As most of these clicks could never affect my expressions, is there a way to reduce the number of calls to execute or any other strategy you would recommend?

      Thanks!

      Kabe

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

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

        On 21/03/2010 at 02:11, xxxxxxxx wrote:

        interesting question, btw **** if we "imitate" a parent constraint with getposition and get rotation, in a plugin tag, is that going to make all slower than adding "real" parent constraints?........

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

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

          On 21/03/2010 at 23:55, xxxxxxxx wrote:

          Interesting sidenote: ExPresso tags seem to suppress execution on viewport clicks, if this doesn't trigger any scene change. They do fire on clicks to the AM or the MM.

          Kabe

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

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

            On 22/03/2010 at 04:33, xxxxxxxx wrote:

            It seems to happen only in dialogs that use tree lists. It looks almost like a bug. I will report this to the developers. The AM and the viewport triggers my test expression only if the click changes something.

            cheers,
            Matthias

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

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

              On 22/03/2010 at 08:23, xxxxxxxx wrote:

              In the concrete case it's an expression tag which should only react on scene changes.

              Cheers

              Klaus

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

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

                On 23/03/2010 at 08:47, xxxxxxxx wrote:

                I had the same problem, the expression was even executed when the mouse cursor hovered over the axis of an object in the viewport.
                My approach was to do some checks in my Execute() function, checking e.g. if the scene time had changed, or if any of the participating objects were dirty.

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

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

                  On 23/03/2010 at 09:31, xxxxxxxx wrote:

                  Could this be addressed by Message Handling? It seems strange to me that all the plugins would need to take their own measures to avoid superflous updates...

                  Kabe

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