THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/08/2011 at 05:52, xxxxxxxx wrote:
You don't actually have to. You can distribute the .cof file and any resources and it will work fine on both platforms.
If you want to prevent other users seeing/copying your code, you can 'compile' it using another plugin provided with the SDK. If you look in the SDK folder (the one you downloaded from Maxon) you'll see a folder called 'help'. Open that and then open the folder 'Examples'. In that you'll see several folders, one of which is called 'Compiler'. Copy that complete folder - there's only 2 files in it - to your C4D plugins directory.
When you start C4D you'll see a new plugin, called (IIRC) Compile file... or something like that. Click it, navigate to your .cof file, and it will generate a .cob file which you can distribute. Plus the resources, of course - it doesn't compile those.
Note that you can't decompile the .cob file, so don't delete the .cof file, just don't distribute it.