Get the (standard) particles information



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/10/2012 at 01:10, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Now I only have two doubts.
    The direction is not returning the particle direction but it is, in fact, returning a value that corresponds, somehow, to the direction of the emitter.
    And I don't know how to interpret the wing value.
    Could someone help me out on this?

    All the information you're getting about a particle is listed and explained in the members of c4d.modules.particles.Particle (Python documentation).



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/10/2012 at 01:13, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    That solution only works if there are objects as childs of the emitter and the "Show Objects" option is on.
    I want to be able to access the particle values even if there are no objects being created.
    And the good news are... I DID IT!!! :-)

    Ah ok, I understand now why you couldn't use this solution. Glad you found how to read the particles data.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/10/2012 at 08:28, xxxxxxxx wrote:

    However, the information in the SDK about the standard particles is almost non-existent.
    Shouldn't it be more clear?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 02:36, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    However, the information in the SDK about the standard particles is almost non-existent.
    Shouldn't it be more clear?

    Have you looked into the Python docs (not COFFEE) at the page for the class c4d.modules.particles.Particle? I don't think there's more to add.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 05:25, xxxxxxxx wrote:

    Yes, I have looked into it, Yannick.
    It tells me what information is present but it doesn't tell me where it is, how to get it, etc.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 06:03, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    However, the information in the SDK about the standard particles is almost non-existent.
    Shouldn't it be more clear?

    Yes, it should.

    Cheers,
    André



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 07:53, xxxxxxxx wrote:

    Also, besides not telling us how to get the raw data, it doesn't tells us how to get the elements out of the data.
    As you can see from my exemplar above, it is not a straightforward method.

    Rui Batista



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 09:03, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Also, besides not telling us how to get the raw data, it doesn't tells us how to get the elements out of the data.
    As you can see from my exemplar above, it is not a straightforward method.

    Rui Batista

    The C++ documentation states that the array of particles is private (ParticleTag docs' page).
    In fact the issue is: the C++ SDK's ParticleObject class isn't wrapped in Python. This class allows to easily access the particle array without having to figure how the particles are stored in memory.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/10/2012 at 09:37, xxxxxxxx wrote:

    So, should it be in the python SDK in the current form?
    Because, as it is now, it shows information that is not accessible directly.

    Rui Batista



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 09/10/2012 at 01:42, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    So, should it be in the python SDK in the current form?
    Because, as it is now, it shows information that is not accessible directly.

    Particle class is used when overriding ObjectData.ModifyParticles(). I think it was wrapped for that purpose. But yes, it should be possible to access directly the particles in an emitter with the Python SDK.


Log in to reply