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

    Simple object generator

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 212 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 18/04/2008 at 11:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi,

      I'm trying to read in a csv file, then generate spheres that have coordinates and colors contained in the file.

      I've searched all the SDK and forums, but can't quite seem to put it all together. I tried to modify the Atom() example, using a polygon object, but it isn't working.

      Also, can anyone recommend a starting point in the SDK docs to get a handle on the overall structure of the SDK, like how to add objects and simple materials?

      Can anyone give me a simple example, or point me to something in the SD?

      Many thanks,

      Jeff

      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 21/04/2008 at 01:25, xxxxxxxx wrote:

        Do you really need a generator object? If it is only about importing static geometry you should rather use a command or import filter plugin. Here a link to a thread where I posted some example code how to create a sphere and insert it into the document.

        insertobjects

        What you basically have to do is to allocate an object, a tag or whatever you want to create with the Alloc() function of its base class. Then you have to insert it into its appropriate list class. For objects it's the BaseDocument, for tags it's BaseObject.

        Currently the SDK documentation is more of a reference than a guide how to start developing plugins. You will find lots of info on this forum and you should check the SDK examples.

        cheers,
        Matthias

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