<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div> A possible solution is to specify a set of points and use a cardinal spline to generate a spline path. I can then use the set of points that correspond to the spline path, as input to an actor, and translate the actor along the spline path. </div><div><br></div><div>I just need some help here on how to generate a timer tick using Tcl, to increment the next position to translate the actor to.</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">vtkActor sphere</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> sphere SetMapper sphereMapper</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> # TODO: Translate the sphere to the next position along the spline path</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> for {set i 0} {$i < $numberOfOutputPoints} {incr i 1} {</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> eval sphere SetPosition [points GetPoint i]</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> }</span></font></div><div><br></div><div>How can I achieve this using Tcl? I don't know how to install a timer event, so that it is automatically registered and asynchronously feeds input to the for loop, while still allowing me to interact with the window. For example, the actor should be translated every 500ms, and the window should still be responsive to render window interactor commands to zoom, pan, rotate, etc. </div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br><div><div>On Oct 10, 2008, at 1:44 PM, Elvis Dowson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br> Is it possible to animate and move a 3D glyph along a 3D spline path? Are there any VTK classes that support key framing or animation?<br><br>Best regards,<br><br>Elvis Dowson<br></div></blockquote></div><br></div></body></html>