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

    Stateful Effector

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 400 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 29/05/2013 at 02:14, xxxxxxxx wrote:

      Hi,

      I want to iteratively update object positions, but .off resets on every frame?

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

        On 29/05/2013 at 10:21, xxxxxxxx wrote:

        Hi bb, can you pls give some more information? Where do you set the positions? In a Python Effector or from an expression and adjust the positions of each node? If you use the Python Effector in which mode does it run?

        Cheers, Seb

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

          On 29/05/2013 at 20:11, xxxxxxxx wrote:

          Hi, thanks for the reply. I've got some C++ experience, but new to Python, also there's little architectural info and guidance in the SDK (know a good tutorial?)

          The goal is to shuffle around some Mograph clones, like solving a puzzle or rubik's cube. It seems all the effectors work formulaic from one initial state and can't permanently change object positions.
          I stored the Matrix offsets in a class global list, Python Effector, Full Control - it's working, but seems a bit roundabout to update all cloner positions on every main() call . Would an expression be a better way? Where are the differences? Can you access the clones only through Matrices?

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

            On 30/05/2013 at 03:24, xxxxxxxx wrote:

            The MoGraph Cloner evaluates the effectors again on each frame with the initial positions set by the cloner. So a Python Tag might be worth looking at as you can set the objects positions permanently. But if you go with moGraph you might want to change your formula, so you can calculate the position with the given index of the clone and the given time.

            Cheers, Seb

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