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
    • Register
    • Login

    Bug in Python R20 [c4d.MDATA_EXTRUDE_PRESERVEGROUPS]

    Cinema 4D SDK
    python r20
    2
    3
    938
    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.
    • Caleidos4DC
      Caleidos4D
      last edited by r_gigante

      Hi!
      sorry for my bad english
      I found this strange behavior in the Extrude tool:

      import c4d
      from c4d import gui, utils
      def main():
      	#Estrusioni
      	settings = c4d.BaseContainer()
      	settings[c4d.MDATA_EXTRUDE_OFFSET] = 20
      	settings[c4d.MDATA_EXTRUDE_CREATECAPS] = False
      	settings[c4d.MDATA_EXTRUDE_SUBDIVISION] = 0
      	settings[c4d.MDATA_EXTRUDE_PRESERVEGROUPS]=True
      	utils.SendModelingCommand(command = c4d.ID_MODELING_EXTRUDE_TOOL,list = [op], mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION, bc = settings,doc = doc, flags=c4d.MODELINGCOMMANDFLAGS_CREATEUNDO)
      	c4d.EventAdd()
      if __name__=='__main__':
          main()
      

      [c4d.MDATA_EXTRUDE_PRESERVEGROUPS]=True is always False

      1 Reply Last reply Reply Quote 0
      • a_blockA
        a_block
        last edited by

        Hi,

        as described in the user help for the Extrude, Preserve Groups works in combination with the Maximum Angle parameter. So you also need to set MDATA_EXTRUDE_ANGLE for it to work.

        Cheers,
        Andreas

        1 Reply Last reply Reply Quote 1
        • Caleidos4DC
          Caleidos4D
          last edited by

          Now Work
          Thanks Andreas

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