<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>I’m using the Javascript API for 4.0.1 to try to render files remotely. A file renders correctly, but with the “Surface” representation. I’d like to change the representation to “Wireframe” (even default to this).</div><div>As far as I can tell from the docs, I need to call vtk:updateDisplayProperty() (RPC on protocols.ParaViewWebPipelineManager). Does this seem correct?</div><div><br></div><div>Below is the code that is not working. I’m totally guessing on the displayOptions object since the API docs don’t really specify much. I probably need to pass in the proxy_id as well, but I’m unclear how to get that.</div><div><br></div><div>Also, the only JavaScript API docs I can find are at the URL <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/</a>. Is there a ParaView4 version I should be looking at?</div><div><br></div><div>Much Thanks,</div><div>Dave</div><div><br></div><div><br></div><div>session.call("vtk:openFileFromPath",'./material.pvd').then(</div><div> function(reply){</div><div> console.log('****** Works fine, this line is printed ******');</div><div> viewport.resetCamera();</div><div> viewport.render();</div><div> });</div><div><br></div><div><div>var displayOptions = {</div><div> Representation: 'Wireframe'</div><div>}</div><div><br></div><div>session.call("vtk:updateDisplayProperty", displayOptions).then(</div><div> function(reply) {</div><div> console.log('****** This line never gets printed ******');</div><div> viewport.render();</div><div> });</div><div><br></div></div></body></html>
<br>
<p>This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient for this e-mail, you are hereby notified that you must not disseminate, copy or take action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and destroy this e-mail and its attachments.</p>