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

    Problem with CurrentStateToObject

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 339 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/04/2006 at 19:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I'm performing a SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT,doc,op,bc,MODIFY_ALL); command on an object because I need to access its deformed points. I then get the next object with GetNext and read the deformed points from it. Finaly, I remove the generated object with Remove(), because I only needed it for getting the deformed points, like I said. The problem is that this is a COFFEE expression and, as soon as the operations are performed, all objects get deselected. I can't even select an object in the Object Manager because, as soon as I do so, the object gets deselected.
      Is there any way to recover what was selected before performing the SendModelingCommand... Remove() ?
      Or, is there any other way to get access to deformed points, without having to generate a new object in the editor, even if I delete it afterwards?

      Rui Batista

      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 03/05/2006 at 13:41, xxxxxxxx wrote:

        I believe CURRENTSTATETOOBJECT isn't allowed in C.O.F.F.E.E. expressions, assuming that you use it to operate on the scene of the expression tag. At the expression stage of scene building you would in that case need to clone the document first.

        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 08/07/2008 at 11:53, xxxxxxxx wrote:

          Rui, did you get this to work?
          Cloning the doc or somehow else?
          Just ran into the same issue wanting to use the deformed
          state of a spline to get a position along it using COFFEE
          expression pluginTag.

          Cheers
          Lennart

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

            Nope, I did never managed to do it successfully 😞 Rui Batista

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

              Thanks for letting me know. Darn..
              We really need to get the deformed state via coffee directly....
              I started to set up a Storedocumentselection() function, but feel
              unconfy about it, given that it could be alot of objects running
              the expression....

              So the only way I know of, that is a tedious manual workaround, is to bake¨the splines (in linear, no interpolation mode) using the PointCache Tag. Then set the interpolation back to the wanted type.

              Oh well, I hope coffee is still going somewhere (given that scripting
              is recently implemented).

              Cheers
              Lennart

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