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

    how to make objects editable

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 464 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 04/02/2017 at 07:35, xxxxxxxx wrote:

      hello , 
      I am trying to use SendModelingCommand to make an object editable , 
      but I don't seem to make it work ,and I don't want to use call commands , because my code is more complex than the sample below , and call commands would be a problem 
      here is the sample :

      import c4d
      from c4d import utils
      def main() :
          obj = doc.GetActiveObject()
          bc = c4d.BaseContainer()  
          res = c4d.utils.SendModelingCommand(
        
                                    command = c4d.MCOMMAND_MAKEEDITABLE,
                                    list = [obj]  ,
                                    mode = MODELINGCOMMANDMODE_ALL,
                                    bc = bc ,
                                    doc = doc )
        
          c4d.EventAdd()
        
      if __name__=='__main__':
          main()
        
        
      
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 04/02/2017 at 07:41, xxxxxxxx wrote:

        If i'm right res[0] hold the new polygonObject. So you have to insert it

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

          On 04/02/2017 at 07:45, xxxxxxxx wrote:

          Yes , it worked !
          thanks you very much 🙂

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