Jump to content

Create age point attribute (point cloud)


marles

Recommended Posts

Hi everybody,
 
I made a basic simulation with a point cloud, just a point cloud which is rising over a sphere. All points which are eaten by the pointcloud become red and are in the "Origine" group (sorry for the french group name ^^).
 
But now i would like to create an "age" attribute for each point which are in the group, for example if the point 85 is in the point cloud for 3.5 secondes ago, so the age attribute would be: age=3.5
 
Until now i haven't manage it... my first mind was to create this attribute with a wrangle point....but i need some help :wacko:  .... So if someone have a method (with vex, vop or other technic) to create this kind of attribute, it would be awesome  :) 

I linked my Hip file if you need it, tell me if i was not understandable.

Thanks for your help,

AgePointInGroup.hiplc

Edited by marles
Link to comment
Share on other sites

Hi Charles,

 

I can't help you with some vex cause i don't know one word of it ^^ 
But you can try with a pop network... I don't know if it's what you want, but i tryed to use you're red points like a source, and then i get the an age attribut. 
I don't know if with that you can do what you want... 


Bye ;) 
 

AgePointInGroup02.hipnc

Edited by S2jo
Link to comment
Share on other sites

Hey S2jo, thx for your reply,
 
Effectively, use the pop network can make the trick, thanks for the tip.
But i still get an issue: when i use the pop network to create particles on the points, the particles are constantly emmited on the point so i can't use the "age" attribut correctly to create a group... 
 
For example i would like to keep just the youngest particles and delete all particles over than 0.5 (AGE) but if i put $AGE < 0.5 in the group it doesn't work, because new particles appears where the oldest are not anymore in the group.... 
Maybe there is a way in the popnet to emit just one particle per point, this would be awesome.

I don't know if i explained it correctly so i put my hip.

Thanks for your help  :)

AgePointInGroup03.hipnc

Link to comment
Share on other sites

Ok my fault, i needed just to check the option "Remove Overlapping" in the POPsource ("Birth" tab)

So now with a popnet i will be able to do what i want, thanks a lotfor yout help S2jo.

If anyone have another technic with vex to create an attribute age to the particles i would be really interested to hear him..  :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...