<div dir="ltr">Scott is right, the x,y values are normalized, so depending on your screen size if your image is 1000 pixel wide and you want to reflect a move of 10 pixel, you should send a x of 10/1000=0.01.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 4:28 PM, Scott Wittenburg <span dir="ltr"><<a href="mailto:scott.wittenburg@kitware.com" target="_blank">scott.wittenburg@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Here is a sample from my websocket frames just now:</div><div><br></div>[48,4996973606207488,{},"viewport.mouse.interaction",[{"view":353,"action":"move","altKey":false,"ctrlKey":false,"shiftKey":false,"metaKey":false,"buttonLeft":false,"buttonMiddle":false,"buttonRight":true,"x":0.7654596100278551,"y":0.38173817381738173}]]<div><br></div><div>It seems the "action" should be set to "move" rather than "none", as in the documentation you linked, "none" does not seem to be an option.  Also, as that documentation states, x and y should be normalized to [0, 1], as you correctly guessed.  And finally, you may need to provide all the parameters with values like I show above, not just the ones you are interested in.</div><div><br></div><div>But at any rate, this should not then affect the center of rotation, but it sounds like in your case maybe it is?  Can you see if moving just a *tiny* bit keeps at least some of the object in view?</div><div><br></div><div>Cheers,</div><div>Scott<div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 4:12 PM, Jordan Deyton <span dir="ltr"><<a href="mailto:deytonjh@ornl.gov" target="_blank">deytonjh@ornl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ParaViewWeb gurus,<br>
<br>
Is there a correct way to send a zoom request through the ParaViewWeb API?<br>
<br>
I'm especially looking at the PVW MouseHandler (documentation here -- <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/protocols.ParaViewWebMouseHandler" rel="noreferrer" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/protocols.ParaViewWebMouseHandler</a>)<br>
<br>
I have had some success by sending a right-click with a small y value (looks like it needs to be between 0 and 1), the action set to "none", and buttonRight set to "true". However, when I afterward rotate the view (using the same RPC call with different methods), the rendered object just vanishes, although the axes and legend are still there.<br>
<br>
Jordan<br>
<br>
-- <br>
Jordan Deyton<br>
Oak Ridge National Laboratory<br>
Telephone: <a href="tel:%28865%29%20574-1091" value="+18655741091" target="_blank">(865) 574-1091</a><br>
Email: <a href="mailto:deytonjh@ornl.gov" target="_blank">deytonjh@ornl.gov</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>