On 21/06/2014 at 04:18, xxxxxxxx wrote:
I`m using python atm but i think this applies to either:
Managed to get the FBX Importer by stepping down 1 from the Exporter ID ( which is 1026370 ).
But the way to access it seems a bit unexpected and a bit of guesswork involved. There have been a couple of threads on here about changing Export settings and i`ve adapted the code for import as follows:
plug = plugins.FindPlugin(1026369, c4d.PLUGINTYPE_SCENELOADER)
if plug is None:
print "no plugin found"
return
print "plugin found"
op = {}
# Send MSG_RETRIEVEPRIVATEDATA to FBX export plugin
if plug.Message(c4d.MSG_RETRIEVEPRIVATEDATA, op) :
if "imexporter" not in op:
print "no loader found"
return
print "loader found"
# BaseList2D object stored in "imexporter" key hold the settings
fbxImport = op["imexporter"]
if fbxImport is None:
print "no importer found"
return
print "importer found"
print "setting = "+str(fbxImport[c4d.FBXIMPORT_SCALE])
fbxImport[c4d.FBXIMPORT_ANIMATION] = True
fbxImport[c4d.FBXIMPORT_SCALE] = 100
file = documents.MergeDocument(doc, "C://MyFile.fbx", c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS)
The FBXIMPORT_ANIMATION setting allows me to change the animation
setting from true to false, and this is reflected in the FBX Import settings in preferences.. However it doesn`t seem to have any impact on my plugins import which ignores animation regardless..
The FBXIMPORT_SCALE also has no effect although im guessing with that one that it
s a number.
Anybody tried this at all?