THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/02/2010 at 03:43, xxxxxxxx wrote:
Cinema 4D Version: 11& 11.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
This is an easy question, mostly a yes/no question though if anybody bothers to elaborate well... I am all ears
Saving your scene as .C4D with COFFEE is kinda trivial but.. can I save it as FBX with a COFFEE script (without using File/Export )?
If yes...Any hints, bits or pieces of code that I can look up?
Thanx a lot.
On 23/02/2010 at 02:11, xxxxxxxx wrote:
No, not possible with COFFEE.
On 24/03/2010 at 07:21, xxxxxxxx wrote:
How to do this in C++?
For most formats that would be SaveDocument(), however, FBX and a few others are not in the list of defines... is that for a reason?
On 24/03/2010 at 08:36, xxxxxxxx wrote:
It should work by passing the exporter's plugin ID. The missing exporter/importer IDs have been probably just forgotten to add to the list.
On 24/03/2010 at 14:29, xxxxxxxx wrote:
I've used this with some success:
SaveDocument(doc, filename, FALSE, 1017081);
Caveat: You might run into problems saving UVs. Sometimes the UVs are not written to the FBX file if a material is assigned but there's nothing in the color channel. A workaround is to assign a dummy texture to the material's color channel.
If anyone knows a better fix for that, I'd love to know it
On 24/03/2010 at 14:40, xxxxxxxx wrote:
Matthias, could you search for the missing exporter plugin IDs, please?
Besides FBX the most obvious omissions are STL and Collada...
Thanks a million
On 25/03/2010 at 02:17, xxxxxxxx wrote:
FBX 2010.2 - 1023841
FBX 6 - 1017081
COLLADA - 1022316
Here the code to get all exporter IDs.
Bool MenuTest::Execute(BaseDocument *doc)
if (!arr) return FALSE;
if (!FilterPluginList(arr, C4DPL_SCENESAVER, FALSE)) return FALSE;
LONG cnt = arr->GetCount();
for (LONG i=0; i<cnt; i++)
BasePlugin *plugin = NULL;
plugin = (BasePlugin* )arr->GetIndex(i);
On 25/03/2010 at 02:30, xxxxxxxx wrote: