<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Mike,<br>
      <br>
      I had to do this for something many years ago. I think I set up a
      Script node to manage the playback time. Try using the TimeSensor
      to just keep time, set the duration to 1 second and have it
      repeat. Use a Script node to track the current position and
      advance the slider according to the changes to a PlaneSensor plus
      an adjustment for the TimeSensor. You will need to keep track of
      seconds within the Script. It should be doable by using a
      minute-long loop in the TimeSensor instead.<br>
      <br>
      Each full cycle represents some fractional part of the range of
      the PlaneSensor. You just convert the TimeSensor fractional input
      to the PlaneSensor range and keep adding. If the user changes the
      position of the slider (and hence a PlaneSensor event), then the
      current position (fraction) changes. <br>
      <br>
      All of this generates a fractional event (SFFloat) to drive the
      model position and orientation through its path.<br>
      <br>
      <br>
      Leonard Daly<br>
      <br>
      <br>
      <br>
      1) TimeSensor starts (on command or world-load)<br>
      2) Feeds <br>
    </div>
    <blockquote
      cite="mid:39269265-0159-4E9B-8EA9-37AB8F8286AC@mbari.org"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hello,
      <div><br>
      </div>
      <div>I have an hour's worth of platform orientation data that I
        can play back with a TimeSensor. I'd like to give the viewer a
        slider to be able to "scrub" through the data.</div>
      <div><br>
      </div>
      <div>I can route in a PlaneSensor to control the
        OrientationInterpolators, but when the PlaneSensor is not active
        the TimeSensor resumes with its value not being changed.</div>
      <div><br>
      </div>
      <div>What I'd like to do is to route a value into a 'set_fraction'
        field of TimeSensor, but that is not in the X3D specification.</div>
      <div><br>
      </div>
      <div>Are there any other ideas on how to accomplish this? (I'd
        think that this would be a common use case: basically a video
        playback controller for any sort of time dependent data.)</div>
      <div><br>
      </div>
      <div>-Mike</div>
      <div><br>
        <div apple-content-edited="true">
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; ">--<br>
            Mike McCann<br>
            Software Engineer<br>
            Monterey Bay Aquarium Research Institute<br>
            7700 Sandholdt Road<br>
            Moss Landing, CA 95039-9644<br>
            Voice: 831.775.1769  Fax: 831.775.1736 <a
              moz-do-not-send="true" href="http://www.mbari.org">http://www.mbari.org</a></span>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <font class="tahoma,arial,helvetica san serif" color="#333366">
        <font size="+1"><b>Leonard Daly</b></font><br>
        X3D Co-Chair<br>
        3D Systems & Cloud Consultant<br>
        President, Daly Realism - <i>Creating the Future</i>
      </font></div>
  </body>
</html>