main.py:
import bpy
bpy.ops.wm.addon_enable(module="io_import_scene_mhx")
bpy.ops.import_scene.makehuman_mhx(filepath="~/Desktop/first_gen.mhx")
blender --background --enable-autoexec --python main.py
GIVES THE ERROR: Error when loading MHX file ~/Desktop/first_gen.mhx: Auto Run Python Scripts must be turned on. It is found under File > User Preferences > File Error: Not freed memory blocks: 4, total unfreed memory 0.000687 MB
I've installed it on aws where I do not have access to the GUI to go tick the Auto Execution in File > User Preference > File . How do I do it from the command line ? --enable_autoexec does not seem to work. Are there other ways of setting UserPreferencesSystem.use_scripts_auto_execute to True ?