Welcome to Fractal Forums

Fractal Software => Structure Synth => Topic started by: barcud on October 26, 2017, 03:21:47 PM




Title: New Matrix export template makes it possible to export objects using javascript
Post by: barcud on October 26, 2017, 03:21:47 PM
Structure Synth has a javascript interface
One problem was (AFAIK) that the normal Object export doesn't work because you need to run the javascript file - not the eisen script.

With the new export template - you can now export anything that was created using the javascript interface by adding the line:

Builder.templateRenderToFile("MatrixColor_BSC.rendertemplate", "name_of_file.txt",true);

at the end (if you saved the template as MatrixColor_BSC.rendertemplate in the MISC folder).

This will produce a normal text file with the transformation matrices - convert it via the web page
matrixconverter4structuresynth.created-by.me/converter.html (http://matrixconverter4structuresynth.created-by.me/converter.html)
and render the object - like this sinWave building.
The shape is generated by javascript (basically a sin wave) and the elements that are put on this wave are normal StructureSynth "parts" (like wall or window)