Ich habe versucht, fbx mit Python mit Kino4d zu laden. Wenn Sie fbx von der GUI laden, wird das Dialogfeld mit den Leseoptionen angezeigt. Wenn Sie es jedoch im Skript angeben, können Sie verhindern, dass es angezeigt wird. Verwenden Sie es daher nach Bedarf.
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