[Bf-python] Particles

jmsoler at free.fr jmsoler at free.fr
Thu Aug 3 14:46:28 CEST 2006


Selon Campbell Barton <cbarton at metavr.com>:

> jmsoler at free.fr wrote:
> > Selon Campbell Barton <cbarton at metavr.com>:
> >
> >
> >> Hey all..
> >> I just experimented with particles today with mixed results.
> >>
> >> getParticlesLoc worked for point particles.
> >> for particels with length it used the starting point only. (length is
> >> ignored)
> >> and for static particles it didnt return anything.
> >>
> >>
> >
> > This needs an improvement but it is not so hard to do as all the missing
> > infos can be retreived in the function Object.DupObjects which manages
> > correctly the static particules in duplication .
> >
> >
> >> Could these improvements be good?
> >> * Use Vectors for particle locations instead of lists of 3 floats
> >>
> >
> > Sound as a good idea .
> >
> >
> >> * for particles with length- and static/animated particles, make each
> >> strand a list of vectors.
> >>
> >
> > It can be done in python but faster if already compiled .
> >
> > Note : getParticules and DupObjects use functions borrowed
> > to the render core and it seems that all this may  change
> > soon ...
> >
> > Regards .
> >
> Im not sure how most people would use this, but it seems that
> DupliObjects are only usefull when you have dupli objects enabled, for
> halo's in cases that there are no dupli's this data would be usefull,
>
> JMS, do you want to make the patch?
>
> - Cam
>
>

I can try to correct the missing part (static/animate) of getParticules .



More information about the Bf-python mailing list