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

    use thicken generator inside a python generator

    Bugs
    windows 2024 python
    2
    4
    1.2k
    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
      datamilch
      last edited by

      hi there,

      the thicken generator object is a super cool and powerful tool. i'd like to use it inside of a python generator object, to create some more complex geometry. for this i need some of the selection options of the thicken generator. but activating e.g. 'shell' selection from within the python generator will mess up the output geometry of the thicken object and not generate any polygon selection tag. see attached c4d file.

      after converting the python generator you have access to the built hierarchy and the generated thicken generator. when you select it and then try to activate some selection options ther will be no selection tags created. so it looks like something in the thicken generator is broken/uncomplete, when it is created within a python generator object.
      is there any way to make this work, or is this a special case/limitation?

      def main() -> c4d.BaseObject:
          source_obj = c4d.BaseObject( 5170 )
          source_obj[c4d.PRIM_CYLINDER_CAPS] = False
      
          thicken = c4d.BaseObject( 1060179 )
          source_obj.InsertUnder( thicken )
          thicken[c4d.SOLIDIFYGENERATOR_SELECTION_POLYGON_BOUNDARY] = 1 # does not create tag, will mess up (delete) geo of the selected polys
      
          return thicken
      
      

      thicken test 01.c4d

      thicken test 01.JPG

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

        circumvented the problem by generating 3 thicken objects - one for each surface part (shell, start cap, end cap). then created selection tags and stitched everything together with a connector object.

        i_mazlovI 1 Reply Last reply Reply Quote 0
        • i_mazlovI
          i_mazlov @datamilch
          last edited by

          Hi @datamilch ,

          Thanks for reaching out to us and special thanks for sharing your workaround with the community!

          It looks like the code for the selections in the Thicken object is not optimized to be triggered from the python. I've created a dedicated bug report for this issue in our internal bug tracking system: ITEM#537292. Thanks for bringing this topic up to us!

          Cheers,
          Ilia

          MAXON SDK Specialist
          developers.maxon.net

          D 1 Reply Last reply Reply Quote 0
          • ferdinandF ferdinand moved this topic from Cinema 4D SDK on
          • D
            datamilch @i_mazlov
            last edited by

            hi @i_mazlov,
            ok, good to know.
            i also tried to insert the thicken generator into a temp_doc, activating the selections and executing passes. but that didn't work either.

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