Cinema 4D Resources
On this page I want to publish the Cinema 4D Plugins and scripts I have made so far. They are mainly features I have been missing or things I figured how to do.
Solo Object
You know how you can “solo” a layer, meaning that everything not on the layer is hidden in the editor? Well, I’ve been missing that feature for a single object. Now, there is this plugin that does the trick. It is written in COFFEE because that makes it cross-platform, but that also means that performance isn’t great and especially with larger numbers of objects it takes a little. But hey, it works!
Export UV to EPS
I don’t understand why this is not part of Cinema 4D, but it was easy to implement, so here it is: with this plugin you can export UV meshes to EPS files, which you can load again in Photoshop, Illustrator, or whichever other application you use to make or tweak your textures.
Make Instance
This is a little convenience script: whenever I create an Instance of another object, I name it after the original object (rather than the default “Instance” proposed by Cinema 4D). Tired of having to rename every object manually, I wrote this little script that does all the work for me: it creates an Instance of the currently selected object and renames it after the original.
The menu state code:
if (GetActiveDocument()->GetActiveObject() != NULL) {
ENABLE = TRUE;
} else {
ENABLE = FALSE;
}
The main code:
CallCommand(5126);
var obj = GetActiveDocument()->GetActiveObject();
// Check if it is an InstanceObject.
if (getclass(obj) == InstanceObject) {
obj->SetName(obj#INSTANCEOBJECT_LINK->GetName());
}