Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Sampling an Effector

    Cinema 4D SDK
    r20 c++ sdk
    3
    5
    832
    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.
    • D
      d_schmidt
      last edited by

      Hello!

      Is it possible to sample an Effector like it is a Field?

      I've done some searching around, but I'm not super familiar with Effectors so I'm not sure if I 100% understand them. I'm looking to do something similar to the MoSpline, where I could feed in a vector and get an output to create something from.

      Is there a manual or post to reference? I saw a few, but they don't seem to be exactly on this topic or I missed them.

      Thanks,
      Dan

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi effector does not expose any interface, the only way I see would be to clone the effector and all it's dependency (this can be tricky). Add a clone of your object in a custom scene as a child of this cloned effector, execute this scene, and then replicate the change.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • D
          d_schmidt
          last edited by

          Hi Maxime,

          I don't fully understand what you mean. Does my object being a child of the effector matter? If my object is a child of the effector how would I get the result from it?

          Dan

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi sorry I missed your reply.
            Effector does not expose any API, so the only way would be to make the all setup in a virtual document, execute it (via ExecutePass) and then copy back the data.
            But this is not an easy task since you need to take care of all the dependency of an effector (and there is again no API to help you in this purpose, so it's on you to retrieve all the stuff necessary).

            Cheers,
            Maxime.

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            1 Reply Last reply Reply Quote 0
            • ferdinandF
              ferdinand
              last edited by

              Hello @d_schmidt,

              without further questions or replies, we will consider this topic as solved by Monday, the 30th and flag it accordingly.

              Thank you for your understanding,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

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