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

    Creating an object based on another

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 277 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 04/07/2012 at 01:16, xxxxxxxx wrote:

      Is it possible to create a new object that has all the characteristics of another one (a primitive object) and just add a few more options that, internally, will only serve to control the parameters that it already has?
      Let me present an example:

      Lets say that I want to create a new type of cube named UbberCube
      It would generate a primitive cube but I would like it show just these parameters:

      Size
      Bevel percentage

      So, internally, it would generate a cube primitive with a set size and a fillet with the size of the percentage value multiplied by the smallest of the size of any given axis.

      So, my question is: Can I create new objects that, internally, use primitive objects (just like Python Generator, but as compilable python plug-ins)?

      Rui Batista

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 04/07/2012 at 03:06, xxxxxxxx wrote:

        You would have to create an ObjectData plugin and return the modified cube in GetVirtualObjects. In that function you would create a cube primitive, modify its settings as you like, then return the created cube. Your plugin interface would just show whatever parameters you desired.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 04/07/2012 at 06:05, xxxxxxxx wrote:

          Thank you very much for the answer, Spedler.
          I will see if I can do it (just starting with python) 🙂

          Rui Batista

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