Comment on page
Exporting Open Brush sketches to other apps
Open Brush sketches can be exported by clicking the ‘Export’ button found on the Labs panel. The Labs panel can be found under ‘More…’ on the Tools panel.
Each sketch exported from Open Brush creates a separate folder in Documents/Open Brush/Exports which contains the geometry in the following formats:
(.glb is closely related to .gltf and most software will support both. We output binary glTF version 2)
python convert_to_fbx.py "c:\Users\username\Documents\Open Brush\Exports\Untitled_1.json"
Each script has a set of command-line options that fine-tune the generated file.
The USD contains both geometry and curve information. If your DCC tool doesn’t support USD, the Open Brush Toolkit contains a Python 2.7 script that can convert the .tilt file to a Collada .dae containing the curves.
- 4.Add both to your Flipside Unity project
- 5.Export your Open Brush sketch and import the .glb file into the Flipside project
- 6.Follow the Flipside instructions for uploading a Unity scene as a Flipside Set
After importing the FBX file into Maya you will need to turn off the Alpha is Luminance attribute in the Color Balance section for each texture node. To see the brush colors in the viewport turn on the Display Colors attribute and set Material Blend to Multiply in the Mesh Component Display section on each mesh shape node.
To render with the vertex colors you can use the mentalrayVertexColors shader node to access the stroke color in your material.
Mozilla Spoke (the Hubs editor) gives an error when you try to import our .glb file directly. However importing first into Blender and then re-exporting will fix this. Not all brushes work correctly but the simpler brushes should import fairly well.
To post to Sketchfab you will need to upload the FBX file and the textures.
We are working with Sketchfab to have Open Brush import correctly, but if the strokes look wrong you can try opening the 3D Settings Editor in Sketchfab and under the Materials tab set the material properties manually.
To upload your work to Styly, you'll need to remove all traces of the audio-reactivity scripts in the Open Brush toolkit.
- 1.Follow the instructions for setting up Styly in Unity here: https://styly.cc/manual/unity-asset-uploader/ but stop when you get to the section about half-way through headed "Upload from Unity to STYLY"
- 3.Delete the following folders from your Unity project window:
- 4.Delete the following files from you Unity project window:
- 5.Also in the project window, drag the entire TiltBrush/Scripts/Gltf folder so it's inside TiltBrush/Scripts/Editor
- 6.Carry on where you left off with the Styly docs.
You'll need to delete the following 2 scripts if you want to build for Unity WebGL targets:
To export sketches from the command line, use the --export option to specify a file or set of files to export. --export supports wildcards, and multiple files can be specified with a single --export flag. Filenames without a path are assumed to be found in the Open Brush Sketches directory.
You can override the destination folder of exports using the --exportPath flag.
We suggest you also specify the -batchmode option if you don’t want the Open Brush window to appear.
OpenBrush.exe --export Untitled_15.tilt Untitled_2*.tilt C:\Downloads\downloaded.tilt --exportPath C:\Temp -batchmode