Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Login

    wrapping a python generator into n objectplugin

    PYTHON Development
    0
    2
    463
    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
      Helper
      last edited by

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

      On 05/10/2010 at 14:44, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12.021 
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :       PYTHON  ;

      ---------
      hello!

      my name is alex, i just started out learning python and start off building some tiny tools and scripts for personal use.

      i came up with n python generator, that included some lines of code to create a certain spline for me, controlled by a few (6-7) userdata fields.

      now as that works, i m thinking about wrapping this stuff into n object plugin (like i.e Py-DoubleCircle, that comes with the python sdk manual). but i cant get my head around that. i just copied the Py-DoubleCircle plugin and changed some things to get it into the right direction, but i failed as i dont have any knowledge about the .res, .h and .str files. i didnt build any plugins before.

      in my generator code i got to defined functions: curve() and main() after i defined those, i just called the main() function. The Generator object is working like a charm, but i dont how how to build up n objectplugin from that point on, so any help would be appreciated!

      thanks in advance,

      alex

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

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

        On 15/03/2011 at 07:07, xxxxxxxx wrote:

        I'm having similar issues - I have my Phyton script working and it shows up in the user scripts menu, but I really want to turn it into a plugin!

        Could anyone suggest some direction / help on this?

        Cheers,
        Andy

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