Re: Convert Position Fcurves key's tangents in 3d space

2012-06-11 Thread Ahmidou.xsi
penGL and custom (raycast) picking depending on the > picking mode. > -- > Brent > > From: softimage-boun...@listproc.autodesk.com > [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi > Sent: 10 May 2012 00:40 > To: softimage@listproc.auto

RE: Convert Position Fcurves key's tangents in 3d space

2012-06-10 Thread Luc-Eric Rousseau
g on > the picking mode. > -- > Brent > > From: softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi > Sent: 10 May 2012 00:40 > To: softimage@listproc.autodesk.com > Subject: Re: Convert Position Fcurve

Re: Convert Position Fcurves key's tangents in 3d space

2012-06-10 Thread javier gonzalez
> the picking mode. >> -- >> Brent >> >> From: softimage-boun...@listproc.autodesk.com [mailto: >> softimage-boun...@listproc.autodesk.com] On Behalf Of Ahmidou Lyazidi >> Sent: 10 May 2012 00:40 >> To: softimage@listproc.autodesk.com >> Subject: Re: Convert Positio

Re: Convert Position Fcurves key's tangents in 3d space

2012-06-10 Thread Ahmidou.xsi
u Lyazidi > Sent: 10 May 2012 00:40 > To: softimage@listproc.autodesk.com > Subject: Re: Convert Position Fcurves key's tangents in 3d space > > Thanks Simon! > I have a working version with tangents, but it crash softimage in some cases, > the std::vector is kind of touchy... &

Re: Convert Position Fcurves key's tangents in 3d space

2012-06-07 Thread javier gonzalez
proc.autodesk.com] On Behalf Of Ahmidou Lyazidi > Sent: 10 May 2012 00:40 > To: softimage@listproc.autodesk.com > Subject: Re: Convert Position Fcurves key's tangents in 3d space > > Thanks Simon! > I have a working version with tangents, but it crash softimage in some >

RE: Convert Position Fcurves key's tangents in 3d space

2012-05-10 Thread Brent McPherson
: Convert Position Fcurves key's tangents in 3d space Thanks Simon! I have a working version with tangents, but it crash softimage in some cases, the std::vector is kind of touchy... I also have problems with the opengl's GL_SELECT for picking that sometimes return funky value (Thanks A

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-09 Thread Ahmidou Lyazidi
Thanks Simon! I have a working version with tangents, but it crash softimage in some cases, the std::vector is kind of touchy... I also have problems with the opengl's GL_SELECT for picking that sometimes return funky value (Thanks ATI...). It seems to be deprecated in favor of custom raycast picki

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-03 Thread Simon Pickard
Very cool! So amazing to see this in Softimage! :) Regards, Simon On 3 May 2012 09:55, Ahmidou Lyazidi wrote: > Hi Jo, and thanks for the snipet! > I already have a structure not that far, but my problem is elsewhere. The > fcurves's tangents interpretation in 3d is not a simple mapping of the

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread Ahmidou Lyazidi
Hi Jo, and thanks for the snipet! I already have a structure not that far, but my problem is elsewhere. The fcurves's tangents interpretation in 3d is not a simple mapping of the X,Y values. I also had to deal with fcurves that don't have necessary three keys a the same time but only one or two, so

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread jo benayoun
oops ! wrong topic :( 2012/5/2 Eric Thivierge > PYTHON THUNDER DOME :D > > 2 coders enter, 1 coder leaves > > > Eric Thivierge > http://www.ethivierge.com > > > > On Thu, May 3, 2012 at 4:57 AM, jo benayoun wrote: > >> """ >> def find_close

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread Eric Thivierge
PYTHON THUNDER DOME :D 2 coders enter, 1 coder leaves Eric Thivierge http://www.ethivierge.com On Thu, May 3, 2012 at 4:57 AM, jo benayoun wrote: > """ > def find_closest_point(obj, pos): > x, y, z = pos > points = obj.ActivePrimiti

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread jo benayoun
""" def find_closest_point(obj, pos): x, y, z = pos points = obj.ActivePrimitive.Geometry.Points count = points.Count points = points.PositionArray xx, yy, zz = points delta = [((x-xx[i])**2 + (y-yy[i])**2 + (z-zz[i])**2) for i in xrange(count)] return delta.index(min(de

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread Jens Lindgren
Nice find Alan! /Jens On Wed, May 2, 2012 at 8:25 PM, Alan Fregtman wrote: > Nice response man! > > A good way to paste code safely is to highlight it first: > http://tohtml.com/python/ > > then copy from the browser and paste into Gmail while Rich Formatting > is enabled. > > > On Mon, Apr 30,

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread Alan Fregtman
Nice response man! A good way to paste code safely is to highlight it first: http://tohtml.com/python/ then copy from the browser and paste into Gmail while Rich Formatting is enabled. On Mon, Apr 30, 2012 at 2:19 PM, jo benayoun wrote: > Hi Ahmidou, > looks quite nice ! :) > > For your proble

Re: Convert Position Fcurves key's tangents in 3d space

2012-05-02 Thread Ahmidou Lyazidi
Hi Raffaele Thanks for the advice, I'll have a look at it!! Regards 2012/5/1 Raffaele Fragapane > Shot in the dimly lit (not completely in the dark), but you should be able > to use catmull rom curves, offer control over each knot's tension on each > interval (left and right) and convert the r

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Raffaele Fragapane
Shot in the dimly lit (not completely in the dark), but you should be able to use catmull rom curves, offer control over each knot's tension on each interval (left and right) and convert the relative components of that vector into pairs for the fcurves handles. Should, in theory, be close enough. I

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread jo benayoun
Hi Ahmidou, looks quite nice ! :) For your problem, I would go in c by reproducing a kinda structure that mimic FCurves ones like the following. """ struct bezfragments { double cps[4][3]; uint_t interp; }; struct motionpath { constchar_t *source; ushort_t color[3]; uint_t fl

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Ahmidou Lyazidi
I think I got it :) 2012/4/30 Halim Negadi > Looks awesome Ahmidou, can't wait to play with it. > Cheers, > H. > > > On Mon, Apr 30, 2012 at 4:44 PM, Ahmidou Lyazidi wrote: > >> Well, as soon as I have resolved the tangent handle stuff :) I'm sure >> it's simple, but I can't get it... >> >> >> 2

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Halim Negadi
Looks awesome Ahmidou, can't wait to play with it. Cheers, H. On Mon, Apr 30, 2012 at 4:44 PM, Ahmidou Lyazidi wrote: > Well, as soon as I have resolved the tangent handle stuff :) I'm sure it's > simple, but I can't get it... > > > 2012/4/30 Philip Melancon > >> This is looking amazing, do you

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Ahmidou Lyazidi
Well, as soon as I have resolved the tangent handle stuff :) I'm sure it's simple, but I can't get it... 2012/4/30 Philip Melancon > This is looking amazing, do you have an idea of when/how you plan to > release this nice little piece of animation goodness? I know that the > animators I work wi

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Philip Melancon
This is looking amazing, do you have an idea of when/how you plan to release this nice little piece of animation goodness? I know that the animators I work with would kill for something like this! Philip Melancon Lead Crowd TD Modus FX On 4/30/2012 10:30 AM, Xavier Lapointe wrote: Whoa, this

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Xavier Lapointe
Whoa, this is awesome. I feel some animators out there are probably jubilating right now :)

Re: Convert Position Fcurves key's tangents in 3d space

2012-04-30 Thread Ahmidou Lyazidi
Video updated :) http://vimeo.com/20538565 2012/4/30 Ahmidou Lyazidi > Hello > I have almost finished my tool for editing position fcurves directly in > the viewport. > It's working fine, and I will post a video later today. Now I would like > to add a tangent editing > functionality before rele