I think I have this figured by following this thread: http://forums.odforce.net/topic/20231-using-the-shift-sop-to-shift-chop-curves/ [forums.odforce.net]
It seems a little convoluted but it works. If anyone has any better solutions I'd love to hear.
Project file posted below.
Found 5 posts.
Search results Show results as topic list.
Houdini Learning Materials » Record Time Point Enters Group?
- hellochristhompson
- 5 posts
- Offline
Houdini Learning Materials » Record Time Point Enters Group?
- hellochristhompson
- 5 posts
- Offline
Hey all,
I've been trying for hours to figure this one out & was hoping to get some input from your good selves.
I have a large number of points that enter a group at different times. I'm trying to use a Point Wrangle to create a parameter that records the frame that the point enters the group. My code looks something like this:
if (@group_release == 1)
{
@time_enter_release = @Frame;
@group_release = 0;
};
Unfortunately this doesn't hold the frame time that the point entered the group, it sets the parameter as the current frame for the entire timeline. Make sense?
I've attached a very simplified version of my scene below.
Any help would be greatly appreciated!
I've been trying for hours to figure this one out & was hoping to get some input from your good selves.
I have a large number of points that enter a group at different times. I'm trying to use a Point Wrangle to create a parameter that records the frame that the point enters the group. My code looks something like this:
if (@group_release == 1)
{
@time_enter_release = @Frame;
@group_release = 0;
};
Unfortunately this doesn't hold the frame time that the point entered the group, it sets the parameter as the current frame for the entire timeline. Make sense?
I've attached a very simplified version of my scene below.
Any help would be greatly appreciated!
Houdini Learning Materials » Reference external objects point count
- hellochristhompson
- 5 posts
- Offline
ndickson, you are an absolute legend. Thank you. I'm learning so much every day and couldn't do it without peeps like your good self. Thanks again.
Houdini Learning Materials » Reference external objects point count
- hellochristhompson
- 5 posts
- Offline
Hey ndickson,
Thanks for getting back so quickly! Unfortunately that doesn't seem to work. Using that code places every single point into the group.
I've attached a super simplified version of what I'm trying to achieve. Any further advice would be massively appreciated.
I need to take a course on VEX!
Thanks for getting back so quickly! Unfortunately that doesn't seem to work. Using that code places every single point into the group.
I've attached a super simplified version of what I'm trying to achieve. Any further advice would be massively appreciated.
I need to take a course on VEX!
Houdini Learning Materials » Reference external objects point count
- hellochristhompson
- 5 posts
- Offline
Hey all,
Super noob question.
I have 2 objects (OBJECT_01, OBJECT_02) with differing point counts. I'm trying to take the object with the greater point count (OBJECT_01) and divide it's points into 2 groups. The first group should have the same amount of points as OBJECT_02 with the remainder going into the second group.
I've put a group expression node on OBJECT_01 but can't for the life of me figure out what to put in the VEXpression field.
This closest I've got is: @ptnum > (“../OBJECT02/”, @numpt) but that's not working.
Any clues to what I'm doing wrong?
Thanks,
Chris
Super noob question.
I have 2 objects (OBJECT_01, OBJECT_02) with differing point counts. I'm trying to take the object with the greater point count (OBJECT_01) and divide it's points into 2 groups. The first group should have the same amount of points as OBJECT_02 with the remainder going into the second group.
I've put a group expression node on OBJECT_01 but can't for the life of me figure out what to put in the VEXpression field.
This closest I've got is: @ptnum > (“../OBJECT02/”, @numpt) but that's not working.
Any clues to what I'm doing wrong?
Thanks,
Chris
-
- Quick Links