Ok,<br><br>It works well, even in hair mode ! :)<br><br>I used the particlecache for exporting hair.<br><br>Great !<br><br>Best regards.<br><br><div><span class="gmail_quote">2008/2/11, Janne Karhu <<a href="mailto:jhkarh@utu.fi">jhkarh@utu.fi</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sure,<br><br>the basic way (i.e. should give correct result in most cases) to get a<br>particle's location (child or actual particle) is<br>psys_get_particle_state(...) in particle.c. You can probably look at the<br>places where it's used to figure out how it works. It should also work for<br>
hair particles, but with the simplification that hair particle's life is<br>always from frame 1 (or zero, don't remember right now) to frame 100.<br><br>Cheers,<br><br>Janne.<br><br><br>On Mon, 11 Feb 2008 13:09:34 +0200, Cédric PAILLE <<a href="mailto:cedricpaille@gmail.com">cedricpaille@gmail.com</a>><br>
wrote:<br><br>> Hi,<br>><br>> I understand that, but, can you tell me, roughly how to get particles<br>> loc ?<br>> I need it for my exporter, at least for making some tests.<br>><br>> Cheers.<br>><br>
> 2008/2/11, Janne Karhu <<a href="mailto:jhkarh@utu.fi">jhkarh@utu.fi</a>>:<br>>><br>>> Hi Cédric,<br>>><br>>> atleast at some point during the physics sprint it was decided that the<br>>> new particles would be in the first release without any python<br>
>> connections. There are a lot of new things to consider and afterwards<br>>> probably many many more things will be possible through python compared<br>>> to<br>>> the old system. The first priority is to get everything working properly<br>
>> in the internal code, after that python can start poking around :) I<br>>> realize that this will make some old scripts non-functional for the<br>>> release, but as a perfect conversion from the old particle system is<br>
>> impossible even without python scripts in the system I don't think it's<br>>> a<br>>> big difference.<br>>><br>>> Janne<br>>><br>>><br>>> On Fri, 08 Feb 2008 23:18:13 +0200, Cédric PAILLE<br>
>> <<a href="mailto:cedricpaille@gmail.com">cedricpaille@gmail.com</a>><br>>> wrote:<br>>><br>>> > Hi all,<br>>> ><br>>> > At first, please excuse my poor englsh, I'm new to the mailing list.<br>
>> ><br>>> > I was waiting since it's in the SVN for the new particle system python<br>>> > module, but it seems that nobody's working on it...<br>>> > So I've beginned to write it myself.<br>
>> ><br>>> > It's almost finished, right now, but I need some pointers to code a<br>>> > function<br>>> > similar to the old getParticlesLoc() of the effect module.<br>>> ><br>
>> > Can somebody tell me how to get the particles location and hair<br>>> segments<br>>> > ?<br>>> ><br>>> > I've tried to look at the "draw_object.c", but it's hard to<br>
>> understand.<br>>> ><br>>> > Hair drawing seems to use the particle cache, and particle uses a<br>>> > function<br>>> > to retrieve the location.<br>>> ><br>>> > Last question : Are you interested to integate it in the SVN ?<br>
>> ><br>>> > Cheers.<br>>> ><br>>><br>>><br>>> _______________________________________________<br>>> Bf-committers mailing list<br>>> <a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-committers">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>>><br>><br>><br>><br><br><br>_______________________________________________<br>
Bf-committers mailing list<br><a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br><a href="http://lists.blender.org/mailman/listinfo/bf-committers">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Cedric PAILLE.