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

    python create fracture object

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 708 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 22/08/2017 at 09:20, xxxxxxxx wrote:

      Hey, I'm trying to create a fracture object that can store created objects.

      something like this:

      frac = c4d.BaseObject(c4d.0mograph_fracture) # Fracture
      doc.InsertObject(frac)

      "0mograph_fracture" doesn't exist, but im trying to figure out something like this.  suggestions?

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

        On 22/08/2017 at 11:19, xxxxxxxx wrote:

        You can drag and drop any object into the console. That will give you an ID, use that id for creat ethe object
        http://recordit.co/Yjt2M7NbGn

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

          On 22/08/2017 at 15:27, xxxxxxxx wrote:

          Ah, fantastic!  Thank you!!  Noob here.

          I was confused how to translate the number from the c4d.CallCommand to the c4d.baseObject.

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

            On 23/08/2017 at 07:55, xxxxxxxx wrote:

            For future readers, another option is to open thew Script Log from Script menu and then create the desired object. The ID you get in CallCommand() is equal to the ID of the object type. Not saying it's better than the described workflow above, probably a matter of personal preference.

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

              On 23/08/2017 at 09:26, xxxxxxxx wrote:

              Oh, completely forgot, Seth!

              Welcome to the Plugin Café forums 🙂

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