Cinema 4D

Description
URL: http://www.maxon.net/ Tutorials: http://www.c4dcafe.com/ipb/index.php?automodule=downloads&showcat=1 Current Version: http://www.maxon.net/pages/download/downloads_e.html Unity Documentation: http://unity3d.com/Documentation/Manual/HOWTO-ImportObjectCinema4D.html

Textures (UV's)
There seems to be a refresh bug within C4D (R10) which won't let you see the proper UV layout of your tags. In order to see the UV layout you want to work on you will have to manually drag the UV Tag into the UV Layout window. Another important factor when dealing with multiple UV's is that the order of the tags is important. See Image for clarification.

Additional Info: It seems like this is not a refresh bug. Bodypaint has the ability to paint on multiple objects at once. Here is a statement of one of the programmers on that topic:

''"Bodypaint UV visibility doesn't just show as soon as you select a tag, you have to actually select the UV set from the menu or drag & drop (and normally you have to also tell it to edit the UV's first too, choosing either UV Polygon or UV Points modes). That's reasonable seeing as you can paint on multiple objects at once that are selected and multiple materials, you don't want to swapping around a lot just because you're doing a multiselection, so the paint window is not directly connected to the object manager in most cases. That's probably because if there is no UVW tag somewhere to the right of a texture tag it uses the first (leftmost) UVW tag on the object when told to UVW projection. It "works" but it's back to front, the one on the right will be using the UVW tag on the left, and the texture tag on the left will be using the one on the right." ''

Exporting to Unity
The latest version of Cinema 4D (R11) properly exports joints to Unity. The only issue is that IK and Xpresso have to be manually baked before they can be imported into Unity.

The easiest way to bake IK and Xpresso is to use the Bake objects command. At times however, this will skip one or two keyframes here or there, introducing nasty pops in the animation.

Another way to bake IK and Xpresso is to use following script. It will record a keyframe on every frame and save the file at a path that you specify, leaving the original file untouched. It will also delete any objects that you specify. This is great if you have controllers that you don't want cluttering the hierarchy in Unity.

To use the script, simply go to Window -> Script Manager in Cinema 4D and paste the script. Name the script Export to Unity. Change the variables at the start of the script to match your own setup. Most important of course is the savePath, which should be the path of your Assets folder or subfolder where you want the exported files. Then go to Plugins -> User Scripts -> Export to Unity. Note that the baked file is .c4d, so you will still need Cinema 4D on the same machine as Unity to convert it to FBX.