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

    Current State to Object of a Subdivision Surface

    Cinema 4D SDK
    python r20
    1
    2
    738
    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.
    • P
      pim
      last edited by

      I want to convert a SDS with a Cube as a child, to one polygon object.
      Thus I select the SDS and do a "Current State to Object".

      However, the resulting object does not seem to take the Subdivision Editor settings into account.

      See below picture.
      On top the SDS + Cube, below the result of the CSTO.

      e23780aa-455d-4f14-8ec7-803822f423cb-image.png

      Using python gave me the same issue

          objList = c4d.utils.SendModelingCommand(
              command = c4d.MCOMMAND_CURRENTSTATETOOBJECT,
              list = [op],              # op.GetClone() did not help
              mode = c4d.MODELINGCOMMANDMODE_ALL,
              doc = doc,
              )       
      
          doc.InsertObject(objList[0])
          c4d.EventAdd()
      

      And AliasTrans did not seem to help.

          trans = c4d.AliasTrans()
          if not trans or not trans.Init(doc):
              return False
          opClone = op.GetClone(c4d.COPYFLAGS_NONE, trans)
          trans.Translate(True)
                                
          objList = c4d.utils.SendModelingCommand(
              command = c4d.MCOMMAND_CURRENTSTATETOOBJECT,
              list = [opClone],
              mode = c4d.MODELINGCOMMANDMODE_ALL,
              doc = doc,
              )       
      
          doc.InsertObject(objList[0])
          c4d.EventAdd()
      
      1 Reply Last reply Reply Quote 0
      • P
        pim
        last edited by

        @pim said in Current State to Object of a Subdivision Surface:

        SendModelingCommand

        Oops, I see Subdivision Renderer setting and not Subdivision Editor setting is taken into account.

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