I tried loading fbx using python with cinema4d. If you load fbx from gui, the dialog of read option will appear, but if you specify it from the script, you can prevent it from appearing, so use it as needed.
savefbx.py
import c4d
from c4d import plugins
def main():
    # Find the FBX importer plugin
    plug = plugins.FindPlugin(1026369, c4d.PLUGINTYPE_SCENELOADER)
    if plug is None:
        return
    # Access the settings
    op = {}
    if plug.Message(c4d.MSG_RETRIEVEPRIVATEDATA, op):
        print op
    fbximport = op["imexporter"]
    if fbximport is None:
        return
    # Define the settings
    fbximport[c4d.FBXIMPORT_CAMERAS] = False
    # Import without dialogs
    c4d.documents.MergeDocument(doc, "/filepath/001.fbx", c4d.SCENEFILTER_OBJECTS|c4d.SCENEFILTER_MATERIALS, None)
    c4d.EventAdd()
if __name__=='__main__':
    main()
How can I one-click the fbx import? http://www.plugincafe.com/forum/forum_posts.asp?TID=11784
Recommended Posts