A few years back - when c4d r17 was in fashion, i developed a generator plugin with the c++ sdk. Since then, the sdk has changed so much that it looks alien to me... add to that the fact that i don't remember much about how i made it work.
Now, i want to develop a custom subdivision algorithm - a modification of catmull-clark - with a few parameters and sliders in the UI, for c4d r21.
So consider me a total newb and please help me find a proper sdk example that you think might be a good starting point. Many thanks!
since r17, some part have change but other remain the same.
I would suggest you to first compile the SDK. For that you will need some steps:
We have a General Plugin Information Manual
After that you have to choose a plugin type that fit your need. For your project as @PluginStudent said, an ObjectData (generator) should be the right one.
You will find tons of information in our manual for example about the Generator
In our sdk (you compiled in first step) there are some example that will help you. You have to register your plugin with RegisterObjectPlugin where you can specify a flag so the generator will pick the child object as an input.
About the slider for your parameter you will find information in this page and that manual
Of course if you need help we have this forum where you can find a lot of example, information and help.
And you can open a new thread for each question you have, we will try to answer them as fast as possible.
in regards to generators, the API has not changed that much since R17. ObjectData based generators are still ObjectData based generators.
You find a lot of generator examples in the SDK and also on GitHub.
You have to decide what is the best workflow and user interaction for your algorithm. Do you want a generator, an interactive tool or some modeling command with a dialog window?