var oObj =3D Selection(0);
var oPoints =3D oObj.ActivePrimitive.Geometry.Points;
var oPos =3D oPoints(0).Position;
var oGlobalPos =3D XSIMath.MapObjectPositionToWorldSpace(
oObj.Kinematics.Global.Transform, oPos)
Cheers!
Aloys
On 26/09/05, Vince Fortin <vfortin(at)gmail.com> wrote:
>
> No, you are just right.
> On a side note, I am using the ParticlePlayer->OutCache feature thinking
> it'd lead to interesting effects.
> This way I can load a cached simulation, apply transformations, scops,
> etc. to the particle collection and re-output an updated cache.
> Well it seems that it works for the position but not for the velocity.
> It's not being updated.
> Also, while I have your attention, do you know of any way I can retrieve
> a component's world position from a *deformed object* ?
> Thanks,
> Vincent
> P/s: Must be monday in Sydney now is it? Muhaha die ptps die!
>
> On 9/25/05, Aloys Baillet <aloys.baillet(at)gmail.com> wrote:
>
> > Hi Vince,
> >
> > I don't have any pity for the PTP caches... go ahead with your
> > extermination!
> > Custom attributes are a new XSI 4 feature, while Particle Player is
> > old, very old... I don't think Soft implemented the custom attributes
> > feature in it.
> > I might be wrong...
> >
> > Good luck!
> >
> > Aloys
> >
> > On 25/09/05, Vince Fortin <vfortin(at)gmail.com > wrote:
> > > Hi,
> > > Is it me or it's impossible to access custom attributes from the
> > Particle
> > > Player via scripting?
> > > I'm suspecting the cache not holding them... which is generally good
> > > disk-space-wise but not in my case...
> > >
> > > I'll wait for your answer until monday, then I'll start moving one PT=
P
> > file
> > > to the trash can randomly, every hour. I know, I'm crazy.
> > > Vincent
> >
> >
> > --
> > Aloys Baillet - XSI Technical Director
> > Character Dpt - Animal Logic
> > --
> >
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> > body:
> > unsubscribe xsi
> >
>
>
--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--
------=_Part_9893_4043233.1127692293957
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Yep it's monday morning, and it's pooring water outside:(<br><br>In order t=
o retrieve the world position of a component:<br>From memory in jscript:<br=
><br>var oObj =3D Selection(0);<br>var oPoints =3D oObj.ActivePrimitive.Geo=
metry.Points
;<br>var oPos =3D oPoints(0).Position;<br>var oGlobalPos =3D XSIMath.MapObj=
ectPositionToWorldSpace(oObj.Kinematics.Global.Transform, oPos)<br><br>Chee=
rs!<br><br>Aloys<br><div><span class=3D"gmail_quote">On 26/09/05, <b class=
=3D"gmail_sendername">
Vince Fortin</b> <<a href=3D"mailto:vfortin(at)gmail.com">vfortin(at)gmail.com=
</a>> wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">
<div>No, you are just right.</div>
<div> </div>
<div>On a side note, I am using the ParticlePlayer->OutCache feature thi=
nking it'd lead to interesting effects.</div>
<div>This way I can load a cached simulation, apply tra=
nsformations, scops, etc. to the particle collection and re-output an =
updated cache.</div>
<div>Well it seems that it works for the position but not for the velocity.=
It's not being updated.</div>
<div> </div>
<div>Also, while I have your attention, do you know of any way I can retrie=
ve a component's world position from a <em>deformed object</=
em> ?</div>
<div> </div>
<div>Thanks,</div>
<div>Vincent</div>P/s: Must be monday in Sydney now is it? Muhaha die ptps =
die!<br><br>
<div><div><span class=3D"e" id=3D"q_1068fa81407d4c11_1"><span class=3D"gmai=
l_quote">On 9/25/05, <b class=3D"gmail_sendername">Aloys Baillet</b> <<a=
href=3D"mailto:aloys.baillet(at)gmail.com" target=3D"_blank" onclick=3D"retur=
n top.js.OpenExtLink(window,event,this)">
aloys.baillet(at)gmail.com</a>> wrote:</span>
</span></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px so=
lid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div=
><span class=3D"e" id=3D"q_1068fa81407d4c11_3">Hi Vince,<br><br>I don't hav=
e any pity for the PTP caches... go ahead with your extermination!
<br>Custom attributes are a new XSI 4 feature, while Particle Player is
<br>old, very old... I don't think Soft implemented the custom attributes<b=
r>feature in it.<br>I might be wrong...<br><br>Good luck!<br><br>Aloys<br><=
br>On 25/09/05, Vince Fortin <<a href=3D"mailto:vfortin(at)gmail.com" targe=
t=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">
vfortin(at)gmail.com
</a>> wrote:<br>> Hi,<br>> Is it me or it's impossible to access c=
ustom attributes from the Particle<br>> Player via scripting?<br>> I'=
m suspecting the cache not holding them... which is generally good<br>
> disk-space-wise but not in my case...
<br>><br>> I'll wait for your answer until monday, then I'll start mo=
ving one PTP file<br>> to the trash can randomly, every hour. I know, I'=
m crazy.<br>> Vincent<br><br><br>--<br>Aloys Baillet - XSI Technical Dir=
ector
<br>Character Dpt - Animal Logic<br>--<br><br></span></div>---<br>Unsubscri=
be? Mail <a href=3D"mailto:Majordomo(at)Softimage.COM" target=3D"_blank" oncli=
ck=3D"return top.js.OpenExtLink(window,event,this)">Majordomo(at)Softimage.COM=
</a>
with the following text in body:<br>unsubscribe xsi<br></blockquote></div>=
<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Aloys Baillet - XSI Tec=
hnical Director<br>Character Dpt - Animal Logic<br>--
------=_Part_9893_4043233.1127692293957--
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi