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

    modify userdata in clones

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 351 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 18/10/2015 at 18:55, xxxxxxxx wrote:

      I have a Cloner object, cloning a single object child "consider it a simple Cube" , this Cube got UserData.
      I want to modify this UserData per clone, how to do this?

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

        On 19/10/2015 at 01:51, xxxxxxxx wrote:

        Hello,

        could you please share some more information? Are you talking about MoGraph clones? Why do you want to edit the userdata? The clones are only virtual and will be rebuild over and over again so your changes would be lost.

        Best wishes,
        Sebastian

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

          On 19/10/2015 at 03:05, xxxxxxxx wrote:

          Hi Sebastian,

          consider a Cube, with some userdata that can change its dimensions using xpresso
          now this cube is cloned in a Cloner "MoGraph clones", I want the Cloner to control its clones userdata using an effector "and for sure the clones should behave correctly according to their new userdata values".

          I expect the Cloner object to clone the whole object "with its tags, hierarchy, etc.." , so this should be doable.

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

            On 19/10/2015 at 09:21, xxxxxxxx wrote:

            Hello,

            in a MoGraph effector you typically edit arrays of properties and not the clones themselves. You could try to access the cloner with GetGenerator() and then edit the clones in its cache. But honestly I don't know if that is save.

            Best wishes,
            Sebastian

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