<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Deal all,<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style><style><!--
.ExternalClass p, .ExternalClass li {
white-space:pre-wrap;
}


--></style><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style><div>I want to animate a solid that moves acording to specific time serie (time, position). By recording the code via python shell i see that appears two simple keywords  that moves the solid by proving specific values.</div><div><br></div><div>example:</div><div><br></div><div><div># get animation track</div><div>box1CenterTrack = GetAnimationTrack('Center', index=0, proxy=box1)</div><div><br></div><div># create keyframes for  animation track</div><div>keyFrame0 = CompositeKeyFrame()</div><div>keyFrame0.KeyTime = 0.0</div><div>keyFrame0.KeyValues = 60.0</div><div><br></div><div>keyFrame1 = CompositeKeyFrame()</div><div>keyFrame1.KeyTime = 1.0</div><div>keyFrame1.KeyValues = 0.0</div><div><br></div><div># initialize the animation track</div><div>box1CenterTrack.KeyFrames = [keyFrame0, keyFrame1]</div><div><br></div></div><div><br></div><div>My doubt is the place where is possible to provide my time serie of time and position. And what is the time units of KeyTime? The KeyValues is position if i understand the sample that i run.</div><div><br></div><div>Instead a specific time serie it is possible to provide each line of time serie as KeyTime and Kay Value, and then for the animation track call them all.</div><div><br></div><div>Example:</div><div>time (minuts) position (m)</div><div><div>1<span class="Apple-tab-span" style="white-space:pre">       </span>7.2                      Converted in script:      <span style="font-size: 12pt;">keyFrame1.KeyTime = 1.0; </span><span style="font-size: 12pt;">keyFrame1.KeyValues = 7.2</span><span style="font-size: 12pt;">                </span></div><div>2<span class="Apple-tab-span" style="white-space:pre">   </span>9.374                 <span style="font-size: 12pt;">Converted in script:      </span><span style="font-size: 12pt;">keyFrame2.KeyTime = 2.0; </span><span style="font-size: 12pt;">keyFrame2.KeyValues = 9.374</span><span style="font-size: 12pt;">             </span></div><div>3<span class="Apple-tab-span" style="white-space:pre">       </span>11.548               <span style="font-size: 12pt;">Converted in script:      </span><span style="font-size: 12pt;">keyFrame1.KeyTime = 3.0; </span><span style="font-size: 12pt;">keyFrame1.KeyValues = 11.548</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">                                                                              box1CenterTrack.KeyFrames = [keyFrame0, keyFrame1, KeyFrame 3 etc..]</span><span style="font-size: 12pt;">        </span></div><div><br></div></div><div><br></div><div>Is possible to do sometinh like that? Convert my time serie of time and position to each keytime and keyvalues in script?</div><div><br></div><div>Kind regards</div><div>Madalena</div>                                          </div></body>
</html>