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

    Cloner - Change Clones

    SDK Help
    0
    4
    362
    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
      Helper
      last edited by

      On 07/08/2014 at 04:08, xxxxxxxx wrote:

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

      ---------
      Hi,

      could anybody tell me what the best way is to change clones of a cloner?
      I can retrieve and read the modata just fine but I can't anywhere find a SetArray or similar to change the clones directly (its matrix for example).

      Thanks in advance!

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

        On 12/08/2014 at 09:45, xxxxxxxx wrote:

        Is it maybe not possible?

        I tried to change the matrix array itself and set the modata dirty afterwards but cannot enforce a change in the clones' position.
        I tried copying the modata, then changing the matrices and merge it back in. Nothing worked so far.

        Anybody any idea? It would really save my all the hassle if it wasn't possible in the first place.

        Thanks in advance

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

          On 12/08/2014 at 10:47, xxxxxxxx wrote:

          I also tried using the GetArray() pointer version without success.

          I do this from within a scene hook, could that pose an issue?

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

            On 12/08/2014 at 11:23, xxxxxxxx wrote:

            ok, further tests show that when using an expression tag with priority stage set to Generators and a very priority value, something changes (the mograph selection vertices change position but not the clones themselves)...

            it seems an effector is the only safe way?

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