Simple object generator
-
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
-
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.
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