<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can a html5 app running jscad retrieve rendered (processed) data ?]]></title><description><![CDATA[<p dir="auto">Hello, I'm starting a website where I show my digital crafting processes, so visitors could produce usable patterns. At first I put links to <a href="http://jscad.org" rel="nofollow ugc">jscad.org</a> loaded with my hosted scripts, but sadly I was not able to produce usable 2d outputs with jscad. I built a small html5 app that generate a multi page pdf with shapes to cut and numbering to trace. But the manual process (the volume to process must be first imported to jscad, copy and paste to the crafting script that is rendered, calculated data are placed on the browser console, where they need to be copy and paste to a file, then the file is opened on the html5 app that generates the pdf) is not user-friendly (sorry for this long introduction). I'm now trying to make a little html5 app from viewer-minimal.html<br />
<img src="/assets/uploads/files/1579715791475-capture-d-%C3%A9cran-de-2020-01-22-18-32-31-resized.png" alt="0_1579715788928_Capture d’écran de 2020-01-22 18-32-31.png" class=" img-fluid img-markdown" /><br />
I cannot get gProcessor.currentObjects on my script even if I can see it by inspecting gProcessor ? Is there a way to get returned data ? On my crafting script, I already have a data array filled with what I need to build the pdf file, is there a way to get data from a jscad script that is not into currentObjects ? I tried to use properties.myProperties.mydata but with no success. Would you recommend to start using V2 to do such development ? (my site (in french) is here : <a href="https://gilboonet.github.io/#M4" rel="nofollow ugc">https://gilboonet.github.io/#M4</a> )</p>
]]></description><link>https://openjscad.nodebb.com/topic/122/can-a-html5-app-running-jscad-retrieve-rendered-processed-data</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 03:54:39 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/122.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Jan 2020 18:05:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can a html5 app running jscad retrieve rendered (processed) data ? on Sat, 25 Jan 2020 12:44:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a> Hello, I didn't open an issue because it's V1, but I will do it so we could keep track of the solution I used. Yesterday I tried my little html5 app on my android tablet with Firefox and it works perfectly<br />
<img src="/assets/uploads/files/1579956208714-android1s-resized.jpg" alt="0_1579956207318_android1s.jpg" class=" img-fluid img-markdown" /><br />
even the PDF creation part<br />
<img src="/assets/uploads/files/1579956265242-android2s-resized.jpg" alt="0_1579956263650_android2s.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/211</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/211</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sat, 25 Jan 2020 12:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to Can a html5 app running jscad retrieve rendered (processed) data ? on Sat, 25 Jan 2020 03:08:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gilboonet" aria-label="Profile: gilboonet">@<bdi>gilboonet</bdi></a> Welcome again! Cool little site. <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f600.png?v=4619dfc2edd" class="not-responsive emoji emoji-android emoji--grinning" style="height:23px;width:auto;vertical-align:middle" title=":grinning:" alt="😀" /></p>
<p dir="auto">This is the first time that someone wants to plug into the results of the processing. It may be possible with V2 as there's more flexibility internally. If you have time, can you open a new issue for this? It would be better to track the progress via the issues.</p>
]]></description><link>https://openjscad.nodebb.com/post/210</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/210</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sat, 25 Jan 2020 03:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Can a html5 app running jscad retrieve rendered (processed) data ? on Fri, 24 Jan 2020 16:58:22 GMT]]></title><description><![CDATA[<p dir="auto">I finally succeeded using localStorage. A little trouble is that I needed to protect the code using localStorage with a try..catch because even if it works it fires an jscad error. I hope to do the same using V2 as soon as possible.</p>
]]></description><link>https://openjscad.nodebb.com/post/209</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/209</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 24 Jan 2020 16:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to Can a html5 app running jscad retrieve rendered (processed) data ? on Fri, 24 Jan 2020 08:11:32 GMT]]></title><description><![CDATA[<p dir="auto">I made a video showing the process as it is now, you choose a .jscad script with the volume, then a second .jscad script that will use that volume. On the video, the second script slices the volume and write data to the console that must be copied. Then the second app is fed with those data and creates a multi page pdf from them. What I'm trying to do is do all into one app.</p>
<p dir="auto"><a href="https://youtu.be/qSnvnlS-A0A" rel="nofollow ugc">https://youtu.be/qSnvnlS-A0A</a></p>
]]></description><link>https://openjscad.nodebb.com/post/208</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/208</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 24 Jan 2020 08:11:32 GMT</pubDate></item><item><title><![CDATA[Reply to Can a html5 app running jscad retrieve rendered (processed) data ? on Thu, 23 Jan 2020 14:21:21 GMT]]></title><description><![CDATA[<p dir="auto">To better explain what I am trying to do, I put a little app here : <a href="https://gilboonet.github.io/OpenJSCAD.org/packages/web/scripts.html" rel="nofollow ugc">https://gilboonet.github.io/OpenJSCAD.org/packages/web/scripts.html</a><br />
It needs to browse ("parcourir..." button) for a .jscad file that it opens and render,<br />
then a click on the other button ("Calculer dimensions") creates code by :</p>
<ul>
<li>renaming "main()" to "volume ()" on the opened .jscad file</li>
<li>add that code to my jscad code that uses volume() to do something with (give volume dimensions).</li>
<li>then run gProcessor.setJsCad(source, 'differenceP.jscad'); where source contains the code described before.</li>
</ul>
<p dir="auto">My question is : is it possible to retrieve the returned geometries and/or other data (here the dimensions), so that my html5 app can use them ? Very nice things would be to be able to get that from DOM, otherwise an export as JSON.</p>
<p dir="auto"><img src="/assets/uploads/files/1579788503823-capture-d-%C3%A9cran-de-2020-01-23-15-03-07-resized.png" alt="0_1579788501289_Capture d’écran de 2020-01-23 15-03-07.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/207</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/207</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Thu, 23 Jan 2020 14:21:21 GMT</pubDate></item></channel></rss>