diff --git a/docs/images/dust3d-ui-script.png b/docs/images/dust3d-ui-script.png index d1fe01f5..bf629368 100644 Binary files a/docs/images/dust3d-ui-script.png and b/docs/images/dust3d-ui-script.png differ diff --git a/docs/images/raw/script-screenshot.png b/docs/images/raw/script-screenshot.png index 68e54ab6..a85b3f92 100644 Binary files a/docs/images/raw/script-screenshot.png and b/docs/images/raw/script-screenshot.png differ diff --git a/docs/images/raw/script.xcf b/docs/images/raw/script.xcf index d259351d..022779db 100644 Binary files a/docs/images/raw/script.xcf and b/docs/images/raw/script.xcf differ diff --git a/docs/interface/interface.rst b/docs/interface/interface.rst index dc830cf7..6eaacaaa 100644 --- a/docs/interface/interface.rst +++ b/docs/interface/interface.rst @@ -16,9 +16,10 @@ You can have multiple windows, the document title shows what version of Dust3D y 3. Dock Panel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Dock panel contains multiple tabs, including `Parts Tree`_, Material List, Rig Weight View, Pose List, Motion List, and Script Editor. +Dock panel contains multiple tabs, including `Parts Tree`_, Material List, Rig Weight View, Pose List, Motion List, and `Script Panel`_. .. _Parts Tree: http://docs.dust3d.org/en/latest/interface/parts_panel.html +.. _Script Panel: http://docs.dust3d.org/en/latest/interface/script_panel.html 4. Rendered Model ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/interface/script_panel.rst b/docs/interface/script_panel.rst new file mode 100644 index 00000000..17e98120 --- /dev/null +++ b/docs/interface/script_panel.rst @@ -0,0 +1,22 @@ +Script Panel +------------------------ + +.. image:: https://raw.githubusercontent.com/huxingyi/dust3d/master/docs/images/dust3d-ui-script.png + +Dust3D supports JavaScript language to generate the source document, which then been fed into the mesh generator to construct the final model. + +1. Rendered Model +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Result model generated from the script. + +2. Script Editor +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Paste your JavaScript code here, or type in the code directly. The script runner will be invoked automatically once there is any change detected from the script editor. +If there is an error or console output from the script, the output will show under the editor. + +3. Variables Panel +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can create input control from script and receive the user input variable which can be used to adjust the settings for the procedural generation.