c4d plugin cookbook

The pages linked here do not contain full tutorials, but code snippets and explanations of how to achieve a specific task in a C4D plugin. They are things which I have had to find out how to do in the plugins I develop. Some are the result of my own research, some are from posts at Maxon's Plugin Cafe site; all due credit is given for those.

I've written these pages as a reference for myself if I need to do the same thing in future plugins, but I hope others will find them useful as well.

Recipes
1. Getting a colour from a gradient element in a description
2. Show or hide description elements
3. Generating a dynamic spline in an ObjectData plugin