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

    Expression jumps back

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 521 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 30/09/2008 at 22:55, xxxxxxxx wrote:

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

      ---------
      I have a tag plugin that sets the lokal Object Matrix during Execute() :

      > ... \> op->SetMl(NewObjectMat,TRUE); \> return EXECUTION_RESULT_OK;

      The expression works just fine in general.

      However, as soon as I deselect all objects, or select a tag, then the object jumps back to another state (initial?).

      Any idea what causes this behaviour? Do I have to commit the change in the Matrix somehow? Do I set the objcet matrix the wrong way, so it get's destoyed? NewObjectMat is created during execute from scratch.

      Thanks for any helpful pointers!

      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 01/10/2008 at 12:12, xxxxxxxx wrote:

        Hi Klaus,

        don't see anything wrong here. I think the problem is rather how you calculate the new matrix.

        Maybe it's also safer to calculate a global matrix and transform it to the object's local? Would be stupid, but you never know...

        Cheers,
        Jack

        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 02/10/2008 at 10:52, xxxxxxxx wrote:

          Well, as already said... the calculation of the new matrix is correct, and the tag works just fine, as long as I don't deselect anything.

          I'm creating the Matrix with

          > Matrix NewObjectMat; \> \> ... \> \> NewObjectMat = MatrixRotY(d);

          It seems that MatrixRotY delivers only a temporary Matrix, that is destroyed as soon as any other proces is called.

          any advice?

          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 02/10/2008 at 11:15, xxxxxxxx wrote:

            Hi,

            > Quote: __
            >
            > * * *
            >
            > .. as long as I don't deselect anything.
            >
            >
            > * * *

            sounds like a check for doc- >getActiveObject() is not fulfilled anymore. do you do anything if nothing is selected somewhere in your code?

            your code above looks alright, i dont think there's much to be done wrong there..

            > Quote: __
            >
            > * * *
            >
            > It seems that MatrixRotY delivers only a temporary Matrix
            >
            >
            > * * *

            i dont think this is possible..
            maybe you have to do a MSG_UPDATE or sth, but thats just guessing on my side.

            greetings,
            Daniel

            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 02/10/2008 at 13:12, xxxxxxxx wrote:

              Npe, it's a tag plugin, there shouldn't be a need to signal an update.

              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 09/10/2008 at 07:55, xxxxxxxx wrote:

                Still struggling with this. Any further ideas would be appreciated. Kind of frustrating if a plugin works fine, but the results don't "stick"...

                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/10/2008 at 07:21, xxxxxxxx wrote:

                  I can not confirm this. I may need some more detailed code. You can contact me through [email protected] if it is confidential data.

                  cheers,
                  Matthias

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