[no subject]

By curiosity, Is there a way to use the refresh with xsibatch ?

Cheers,

guillaume


2005/7/8, kim aldis <kim(at)aldis.org.uk>:
>=20
> try a refresh after the lastframe command.
> are you doing this from the gui or from xsibatch?
> =20
>  ------------------------------
> *From:* owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] *On=20
> Behalf Of *guillaume laforge
> *Sent:* 08 July 2005 09:33
> *To:* XSI(at)Softimage.COM
> *Subject:* Re: RE: Scripting : The simulate button
>=20
> In fact, even the "simulate =3D True" doesn't work :-(
> What I want is to run the simulation and come back to frame 0 at the end=
=20
> of the script.
> In the UI if a go to last frame then start frame, all the simulation is=
=20
> done.
>=20
> By script if I run :=20
>=20
> LastFrame
> FirstFrame
>=20
> The simulation isn't running.
>=20
> If I run :
>=20
> LastFrame
> SetValue "cloud.cloud.ParticlesOp.simulate", True
> FirstFrame
>=20
> It doesn't work too ???
>=20
> I don't understand...
>=20
>=20
> 2005/7/8, kim aldis <kim(at)aldis.org.uk>:=20
> >=20
> > actually it's a mixed blessing. The simulate button only forces simulat=
e=20
> > up to the current frame. you'll still need to position the timeline. Yo=
u may=20
> > have an interesting time if you're trying to do this in xsibatch.
> > =20
> >  ------------------------------
> > *From:* owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] *On=20
> > Behalf Of *guillaume laforge
> > *Sent:* 08 July 2005 08:25
> > *To:* XSI(at)Softimage.COM
> > *Subject:* Re: RE: Scripting : The simulate button
> >=20
> >  Thanks a lot !!!
> >=20
> > 2005/7/8, francois.painchaud(at)sympatico.ca <francois.painchaud(at)sympatico=
.ca=20
> > >:=20
> > >=20
> > > To trigger a re-simulation like the button, something like this (with=
=20
> > > the right object name) should do the trick:=20
> > >=20
> > > SetValue "cloud.cloud.ParticlesOp.simulate", True
> > >=20
> > > Fran=E7ois
> > >=20
> > > > De: "kim aldis" <kim(at)aldis.org.uk>
> > > > Date: 2005/07/07 jeu. PM 04:41:17 GMT-04:00=20
> > > > =C0: <XSI(at)Softimage.COM>
> > > > Objet: RE: Scripting : The simulate button
> > > >
> > > > The simulation is only called if the cache needs updating at a=20
> > > particular
> > > > frame. Set the frame to the last frame of the sim. That'll do it.
> > > >
> > > > _____
> > > >
> > > > From: owner-xsi(at)Softimage.COM [mailto: owner-xsi(at)Softimage.COM] On=
=20
> > > Behalf Of
> > > > guillaume laforge
> > > > Sent: 07 July 2005 21:19
> > > > To: XSI(at)Softimage.COM
> > > > Subject: Scripting : The simulate button
> > > >
> > > > Hi,
> > > >
> > > > I would like to run a particle simulation in a script.
> > > > The only thing I found in the doc. is EvaluateAt(). I tried=20
> > > something like
> > > > this :
> > > >
> > > > oEndFrame =3D GetValue(oCurrentPass+".RenderOptions.EndFrame");=20
> > > > for(i=3D0;i<oEndFrame;i++){
> > > > oSel.EvaluateAt(i)
> > > > }
> > > >
> > > > but it doesn't work.
> > > >
> > > > So I'm using LastFrame() to force the simulation to start but I nee=
d=20
> > > to run
> > > > the "simulate button" in some cases. Unfortunately, nothing is=20
> > > logged when I=20
> > > > clic on it :-/
> > > >
> > > > Is it possible to use the same thing than the simulate button in a=
=20
> > > script ?
> > > >
> > > > Cheers,
> > > >
> > > > Guillaume Laforge.
> > >=20
> > >=20
> > > ---
> > > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in=
=20
> > > body:
> > > unsubscribe xsi
> > >=20
> >=20
> >=20
>

------=_Part_1587_2274160.1120828759086
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks Kim, the refresh works :-)<br>
<br>
&gt;<span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">are you doing t=
his from the gui or from=20
xsibatch?<br>
<br>
<span style=3D"color: rgb(0, 0, 0);">From the gui for the moment. It is a
script who run the simulation for all the clouds in a scene and create
the folders with the .ptp. Then </span><br style=3D"color: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0);">it creates some particle player clouds=
 from those .ptp with the good particle renderer material. Seems to work fi=
ne now :-)</span><br style=3D"color: rgb(0, 0, 0);">
<br style=3D"color: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0);">By curiosity, Is there a way to use th=
e refresh with xsibatch ?</span><br style=3D"color: rgb(0, 0, 0);">
<br style=3D"color: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0);">Cheers,</span><br style=3D"color: rgb(=
0, 0, 0);">
<br style=3D"color: rgb(0, 0, 0);">
<span style=3D"color: rgb(0, 0, 0);">guillaume</span><br>
</font></span><br><br><div><span class=3D"gmail_quote">2005/7/8, kim aldis =
&lt;<a href=3D"mailto:kim(at)aldis.org.uk">kim(at)aldis.org.uk</a>&gt;:</span><bl=
ockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204=
, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div align=3D"left" dir=3D"ltr"><span><font color=3D"#0000ff" face=3D"Arial=
" size=3D"2">try a refresh after the lastframe=20
command.</font></span></div>
<div align=3D"left" dir=3D"ltr"><span><font color=3D"#0000ff" face=3D"Arial=
" size=3D"2">are you doing this from the gui or from=20
xsibatch?</font></span></div>
<div align=3D"left" dir=3D"ltr"><span></span>&nbsp;</div><br>
<blockquote style=3D"border-left: 2px solid rgb(0, 0, 255); padding-left: 5=
px; margin-left: 5px; margin-right: 0px;">
  <div align=3D"left" dir=3D"ltr" lang=3D"en-us">
  <hr>
  <font face=3D"Tahoma" size=3D"2"><span class=3D"q"><b>From:</b> <a href=
=3D"mailto:owner-xsi(at)Softimage.COM" target=3D"_blank" onclick=3D"return top=
.js.OpenExtLink(window,event,this)">owner-xsi(at)Softimage.COM</a>=20
  [mailto:<a href=3D"mailto:owner-xsi(at)Softimage.COM" target=3D"_blank" oncl=
ick=3D"return top.js.OpenExtLink(window,event,this)">owner-xsi(at)Softimage.CO=
M</a>] <b>On Behalf Of </b>guillaume=20
  laforge<br></span><b>Sent:</b> 08 July 2005 09:33</font><div><span class=
=3D"e" id=3D"q_104f5c3ed30a5b13_3"><font face=3D"Tahoma" size=3D"2"><br><b>=
To:</b>=20
  <a href=3D"mailto:XSI(at)Softimage.COM" target=3D"_blank" onclick=3D"return =
top.js.OpenExtLink(window,event,this)">XSI(at)Softimage.COM</a><br><b>Subject:=
</b> Re: RE: Scripting : The simulate=20
  button<br></font></span></div><font face=3D"Tahoma" size=3D"2"></font><br=
></div><div><span class=3D"e" id=3D"q_104f5c3ed30a5b13_5">
  <div></div>In fact, even the &quot;simulate =3D True&quot; doesn't work :=
-(<br>What I want=20
  is to run the simulation and come back to frame 0 at the end of the=20
  script.<br>In the UI if a go to last frame then start frame, all the=20
  simulation is done.<br><br>By script if I run :=20
  <br><br>LastFrame<br>FirstFrame<br><br>The simulation isn't running.<br><=
br>If=20
  I run :<br><br>LastFrame<br>SetValue &quot;cloud.cloud.ParticlesOp.simula=
te&quot;,=20
  True<br>FirstFrame<br><br>It doesn't work too ???<br><br>I don't=20
  understand...<br><br><span></span><br>
  <div><span class=3D"gmail_quote">2005/7/8, kim aldis &lt;<a href=3D"mailt=
o:kim(at)aldis.org.uk" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(=
window,event,this)">kim(at)aldis.org.uk</a>&gt;:</span>
  <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204=
, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div align=3D"left" dir=3D"ltr"><span><font color=3D"#0000ff" face=3D"A=
rial" size=3D"2">actually=20
    it's a mixed blessing. The simulate button only forces simulate up to t=
he=20
    current frame. you'll still need to position the timeline. You may have=
 an=20
    interesting time if you're trying to do this in=20
xsibatch.</font></span></div>
    <div align=3D"left" dir=3D"ltr"><span></span>&nbsp;</div><br>
    <blockquote style=3D"border-left: 2px solid rgb(0, 0, 255); padding-lef=
t: 5px; margin-left: 5px; margin-right: 0px;">
      <div align=3D"left" dir=3D"ltr" lang=3D"en-us">
      <hr>
      <font face=3D"Tahoma" size=3D"2"><span><b>From:</b> <a href=3D"mailto=
:owner-xsi(at)Softimage.COM" target=3D"_blank" onclick=3D"return top.js.OpenEx=
tLink(window,event,this)">owner-xsi(at)Softimage.COM</a> [mailto:<a href=3D"ma=
ilto:owner-xsi(at)Softimage.COM" target=3D"_blank" onclick=3D"return top.js.Op=
enExtLink(window,event,this)">
owner-xsi(at)Softimage.COM</a>] <b>On Behalf Of </b>guillaume=20
      laforge<br></span><b>Sent:</b> 08 July 2005 08:25<br><b>To:</b> <a hr=
ef=3D"mailto:XSI(at)Softimage.COM" target=3D"_blank" onclick=3D"return top.js.=
OpenExtLink(window,event,this)">XSI(at)Softimage.COM</a><br><b>Subject:</b> Re=
: RE: Scripting :=20
      The simulate button<br></font><br></div>
      <div><span>
      <div></div>Thanks a lot !!!<br><br>
      <div><span class=3D"gmail_quote">2005/7/8, <a href=3D"mailto:francois=
.painchaud(at)sympatico.ca" target=3D"_blank" onclick=3D"return top.js.OpenExt=
Link(window,event,this)">francois.painchaud(at)sympatico.ca</a> &lt;<a href=3D=
"mailto:francois.painchaud(at)sympatico.ca" target=3D"_blank" onclick=3D"retur=
n top.js.OpenExtLink(window,event,this)">
francois.painchaud(at)sympatico.ca </a>&gt;:</span>=20
      <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb=
(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">To=20
        trigger a re-simulation like the button, something like this (with =
the=20
        right object name) should do the trick: <br><br>&nbsp;&nbsp; SetVal=
ue=20
        &quot;cloud.cloud.ParticlesOp.simulate&quot;, True<br><br>Fran=E7oi=
s<br><br>&gt; De:=20
        &quot;kim aldis&quot; &lt;<a href=3D"mailto:kim(at)aldis.org.uk" targe=
t=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">kim(at)a=
ldis.org.uk</a>&gt;<br>&gt; Date: 2005/07/07 jeu. PM=20
        04:41:17 GMT-04:00 <br>&gt; =C0: &lt;<a href=3D"mailto:XSI(at)Softimag=
e.COM" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,=
this)">XSI(at)Softimage.COM</a>&gt;<br>&gt; Objet: RE: Scripting :=20
        The simulate button<br>&gt;<br>&gt; The simulation is only called i=
f the=20
        cache needs updating at a particular<br>&gt; frame. Set the frame t=
o the=20
        last frame of the sim. That'll do it.<br>&gt;<br>&gt;&nbsp;&nbsp;=
=20
        _____<br>&gt;<br>&gt; From: <a href=3D"mailto:owner-xsi(at)Softimage.C=
OM" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,thi=
s)">owner-xsi(at)Softimage.COM</a> [mailto:<a href=3D"mailto:owner-xsi(at)Softima=
ge.COM" target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event=
,this)">
=20
        owner-xsi(at)Softimage.COM</a>] On Behalf Of<br>&gt; guillaume=20
        laforge<br>&gt; Sent: 07 July 2005 21:19<br>&gt; To: <a href=3D"mai=
lto:XSI(at)Softimage.COM" target=3D"_blank" onclick=3D"return top.js.OpenExtLi=
nk(window,event,this)">XSI(at)Softimage.COM</a><br>&gt; Subject: Scripting : T=
he=20
        simulate button<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; I would like to=
 run=20
        a particle simulation in a script.<br>&gt; The only thing I found i=
n the=20
        doc. is EvaluateAt(). I tried something like<br>&gt; this=20
        :<br>&gt;<br>&gt; oEndFrame =3D=20
        GetValue(oCurrentPass+&quot;.RenderOptions.EndFrame&quot;); <br>&gt=
;=20
        for(i=3D0;i&lt;oEndFrame;i++){<br>&gt; oSel.EvaluateAt(i)<br>&gt;=
=20
        }<br>&gt;<br>&gt; but it doesn't work.<br>&gt;<br>&gt; So I'm using=
=20
        LastFrame() to force the simulation to start but I need to run<br>&=
gt;=20
        the &quot;simulate button&quot; in some cases. Unfortunately, nothi=
ng is logged=20
        when I <br>&gt; clic on it :-/<br>&gt;<br>&gt; Is it possible to us=
e the=20
        same thing than the simulate button in a script ?<br>&gt;<br>&gt;=
=20
        Cheers,<br>&gt;<br>&gt; Guillaume=20
        Laforge.<br><br><br>---<br>Unsubscribe? Mail <a href=3D"mailto:Majo=
rdomo(at)Softimage.COM" target=3D"_blank" onclick=3D"return top.js.OpenExtLink=
(window,event,this)">Majordomo(at)Softimage.COM</a> with the following text in=
=20
        body:<br>unsubscribe=20
  xsi<br></blockquote></div><br></span></div></blockquote></blockquote></di=
v><br></span></div></blockquote>

</blockquote></div><br>

------=_Part_1587_2274160.1120828759086--
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.