<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Mike, </p><p class=MsoNormal>Same as to do a slider control in x3d?</p><p class=MsoNormal>You disconnect the TimeSensor and drive the Position and Orientation Interpolators with a number you derive from the slider, I think.</p><p class=MsoNormal>Joe</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:mccann@mbari.org">Mike McCann</a><br><b>Sent: </b>Friday, December 13, 2019 10:25 AM<br><b>To: </b><a href="mailto:x3dom-users@lists.sourceforge.net">x3dom mlist</a>; <a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Subject: </b>[x3d-public] HTML slider and TimeSensor scrubbing behavior</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a TimeSensor that drives Position and Orientation Interpolators via ROUTEd fraction _changed and set_ events.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The fraction_changed event out is also connected to an HTML slider (<input type=“range”>) via X3DOM’s onoutputchange() attribute.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The HTML slider shows the progress of the animation, but I’d also like to use it to control the fraction of the animation, much like one can scrub through a video with a timeline slider.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It seems that if I were able to set the fraction of the TimeSensor from the HTML slider I could achieve my goal, but there is not a set_fraction event in for it.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is there a best practice or any suggestions for how I may achieve my goal?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance,</p><p class=MsoNormal>Mike</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>P.S. Though my immediate need is to implement this in X3DOM, I’d think that this might be a common use case, so I’m cross-posting on x3d-public.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--</p><p class=MsoNormal>Mike McCann</p><p class=MsoNormal>Software Engineer</p><p class=MsoNormal>Monterey Bay Aquarium Research Institute</p><p class=MsoNormal>7700 Sandholdt Road</p><p class=MsoNormal>Moss Landing, CA 95039-9644</p><p class=MsoNormal>Voice: 831.775.1769 Fax: 831.775.1736 http://www.mbari.org</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>x3d-public mailing list</p><p class=MsoNormal>x3d-public@web3d.org</p><p class=MsoNormal>http://web3d.org/mailman/listinfo/x3d-public_web3d.org</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>