chad-ld / articy-webpreview

Articy Final Draft Web Preview Code
GNU General Public License v3.0
6 stars 0 forks source link

Articy HTML Flow Preview

One of Articy’s biggest pain points is that you need Articy installed and shared access to a repository in order to preview a flow with someone who isn’t sitting at the same computer as you. This involves the clunky process of screenshots and/or recording your screen while you play through the flow. Neither option is ideal. This plugin was developed to overcome those limitations, letting any user with a web browser demo the flow first hand for repeated playthroughs. You can see a demo of an exported Articy flow in action here:

https://dev.chadbriggs.com/articy/testing/demo/index.html

Requirements:

Current Features:

On Roadmap Features:

Usage Instructions

  1. Download the HTML template files here:

    https://github.com/chad-ld/articy-webpreview/tree/main/builds

  2. Export the files to a folder on your hard drive, keeping the same folder structure as the zip file.

  3. Open up your Articy project in the Articy Editor.

  4. Wherever you want the HTML preview of your flow to start, create an instruction node and insert the following line in the node: //HTMLPREVIEW An example of such a node in Articy is as follows:

Untitled

  1. Save your Articy project.
  2. Export your Articy project.

Untitled (1)

  1. Select the JSON format, and then set the location of the JSON export. In most cases, the other default export settings will work just fine, no need to modify those. The HTML preview exporter will only use the flows that are connected to your //HTMLPREVEW start node.

Untitled (2)

  1. Move the newly exported Articy JSON file in the same folder as the index.hml that you downloaded above.
  2. Open the index.html file inside a text editor, change the default JSON file export to the name of your Articy export. Save and close the text editor.

Untitled (3)

  1. Copy the Articy template folder to a webserver. The main folder your index.html and associated files will reside in can be renamed from “html_viewer_template_v1” to whatever you wish, just do not rename or move the “assets” folder relative to the index.html file.
  2. Navigate to the URL of the folder location based where you uploaded the file to on your webserver. So a sample path might be https://www.customurl.com/myflowname/index.html

As always, any feedback is greatly appreciated to help me improve the project. Shared under the GNU GENERAL PUBLIC LICENSE terms.