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

    multiple generators on same obj dont work

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 242 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 05/01/2009 at 11:33, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1+ 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi,

      i have a question about generators.

      I wrote a generator that does not works on an edgeSelection, that is dragged into a link-field of the generator object.

      I did this so that i can have multiple generators in the scene with different settings for each edgeSelection.

      These generators work on the same source Object (the owner of the edge selectionTag), but it seems that the VirtualHierarchyonly is only created for the first generator.

      I suppose this is due to the use of GetAndCheckHierarchyClone(..) as this function seems to turn the source object invisible.

      So what could i do to make the object available to multiple generators ?

      Should i avoid using GetAndCheckHierarchyClone(..) in this case ?

      thanks,
      Daniel

      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 05/01/2009 at 14:00, xxxxxxxx wrote:

        Afaik you are only allowed to use GetAndCheckHierarchyClone() with child objects of a generator. It seems you don't use child objects but link fields. See also this related thread:

        poly meshes and getvirtualobjects

        cheers,
        Matthias

        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 06/01/2009 at 03:38, xxxxxxxx wrote:

          Thanks for the info Matthias,

          i'll just automatically insert instances under the generator then, and keep the selection link-field to decide on which selection to work.

          I already tried it out and it works for me.
          Now i can have multiple generators on the same object (instancees of the object that is), each working individually on the selectionTag in its link field.

          greetings,
          Daniel

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