Install on Remote Server
18 November 2016 15:03
18 November 2016 18:16
Reply to post of user dwsmart
Hi,
Is there any way to install the blend4web addon into a unbuntu instance that doesn't have a gui, just command line access?
Thanks
Dave
Hi!
And welcome to our forum!
Could you explain details?
Blend4Web addon is an addon for Blender, so actually you can't use the addon without Blender. How are you going to use Blend4Web? By running Blender without GUI?
If you mean application server, the answer is: you can use any HTTP server you want, apache, nginx etc.
Alexander (Blend4Web Team)
twitter
19 November 2016 22:57
Hi,
Sorry, perhaps didn't explain very well.
We are developing an application that requires the blender file to be altered by via a web faced input, as we want to change text & other objects, we then want to re-export these out to with blend4web.
So flow would be user input -> blender via command line & python - > export blend4web .json
Perhaps there is a better way to do this?
Sorry, perhaps didn't explain very well.
We are developing an application that requires the blender file to be altered by via a web faced input, as we want to change text & other objects, we then want to re-export these out to with blend4web.
So flow would be user input -> blender via command line & python - > export blend4web .json
Perhaps there is a better way to do this?
20 November 2016 00:17
Try the following solution:
For export with cmdline, look at reexport target in Makefile in the root of SDK. Just use the following operators
# b4w_headless_install.py
# run as: blender -b -P b4w_headless_install.py
import bpy
# edit the path to your addon archive
bpy.ops.wm.addon_install(overwrite=True, filepath="/home/user/somepath/blend4web_addon_16_10.zip")
bpy.ops.wm.addon_enable(module="blend4web")
bpy.ops.wm.save_userpref()
For export with cmdline, look at reexport target in Makefile in the root of SDK. Just use the following operators
bpy.ops.export_scene.b4w_json
or
bpy.ops.export_scene.b4w_html
Alexander (Blend4Web Team)
twitter