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
    • Recent
    • Tags
    • Users
    • Login

    Python primitives [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 273 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 31/10/2014 at 06:00, xxxxxxxx wrote:

      Hello everyone.

      I have been thinking about this one for a little while. I entered this topic into the python section as I'm hopeful that I won't have to leave the python environment. - That said I'm happy to (try to) delve into c++ if necessary.

      I was wondering if it is possible to make new object primitives?. There are two arms to this:

      Scenario A: I'd like to make mograph effectors which don't have the python effector interface. Is it possible to make an effector using the baseEffector class?

      Scenario B: I'd like to make some new object primitives such as a few versions of platonic like things which aren't in the regular toolset. - Do  I have to make a plugin for each object or is there a better way to do this?

      Any info, even to help me understand why this may not be feasible is appreciated.

      Thanks

      Adam

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

        On 31/10/2014 at 06:25, xxxxxxxx wrote:

        Hello,

        you can only create plugins based on the basic plugin classes[URL-REMOVED]. The EffectorData[URL-REMOVED] class is currently only available in the C++ SDK[URL-REMOVED].

        You can create new primitives using ObjectData[URL-REMOVED] plugins. To simplify your workflow you could create just one plugin object that can create all the different primitives you want. Then the user could use a dropdown parameter to select what object should be created.

        Best wishes,
        Sebastian


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

          On 31/10/2014 at 10:49, xxxxxxxx wrote:

          Thanks for your response, that's really useful.

          Time to go to c++ school...

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