  | | | script execution | script execution 2004-03-12 - By kim aldis
Back but put a small sleep in there else the cpu will go into overdrive and it'll play like doodoo.
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of kim aldis Sent: 12 March 2004 08:02 To: XSI@(protected) Subject: RE: script execution
you could drop in a while loop that checks current frame.
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Scott Hamilton Sent: 12 March 2004 00:57 To: xsi@(protected) Subject: script execution
I am trying to write a script that uses PlayForwardFromStart() (see code below). The problem is that PlayForwardsFromStart() returns immediately, thus executing the second block of code before the animation has finished playing. Is there anyway have execution wait until the playback is finished? block 1: executes some code PlayForwardsFromStart();
block 2: execute more code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><FONT face=Arial color=#008080 size=2><SPAN class=781051611-12032004>but put a small sleep in there else the cpu will go into overdrive and it'll play like doodoo.</SPAN></FONT></DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>kim aldis<BR><B>Sent:</B > 12 March 2004 08:02<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> RE: script execution<BR></FONT><BR></DIV> <DIV></DIV> <DIV dir=ltr align=left><SPAN class=453250108-12032004><FONT face=Arial color=#008080 size=2>you could drop in a while loop that checks current frame.</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Scott Hamilton<BR><B>Sent:</B> 12 March 2004 00:57<BR><B>To:</B> xsi@(protected)<BR><B>Subject:</B> script execution<BR></FONT><BR></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004>I am trying to write a script that uses PlayForwardFromStart() (see code below). The problem is that <FONT size=2>PlayForwardsFromStart() returns immediately, thus executing the second block of code before the animation has finished playing. Is there anyway have execution wait until the playback is finished? </FONT></SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004>block 1: executes some code</SPAN></FONT></DIV> <DIV><FONT size=+0><SPAN class=747585000-12032004> <P><FONT face=Arial size=2>PlayForwardsFromStart();</FONT></P> <P><SPAN class=747585000-12032004><FONT face=Arial size=2>block 2: execute more code</FONT></SPAN></P></SPAN></FONT></DIV> <DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
|
|
 |