how to get the id of primitive according to its color?
for example: how can i get the id of primitive (or point ) which variable Cd1>.5?
thanks
how to get the id of primitive
11816 5 1- rigid
- Member
- 4 posts
- Joined: Nov. 2006
- Offline
- BriAnimations
- Member
- 19 posts
- Joined: July 2005
- Offline
First off, welcome to the forums!
Your question is a little bit misleading… For example, primitives and points don't have an ID attribute by default (only particles do). There is however, a point/primitve number each one gets.
Secondly, what happens if 200 points/primitives in your scene have a $CR > .1 ? Which point/primitive number do you want it to return?
Perhaps we can be of more help if you explain what this is for.
On a side note, there is a poppointid expression that might be of use to you if this is for particles.
Your question is a little bit misleading… For example, primitives and points don't have an ID attribute by default (only particles do). There is however, a point/primitve number each one gets.
Secondly, what happens if 200 points/primitives in your scene have a $CR > .1 ? Which point/primitive number do you want it to return?
Perhaps we can be of more help if you explain what this is for.
On a side note, there is a poppointid expression that might be of use to you if this is for particles.
- goldfarb
- Staff
- 3462 posts
- Joined: July 2005
- Offline
- rigid
- Member
- 4 posts
- Joined: Nov. 2006
- Offline
- rigid
- Member
- 4 posts
- Joined: Nov. 2006
- Offline
- bwalters
- Member
- 2 posts
- Joined: Sept. 2006
- Offline
If you were grouping by color like in your first example, the variables you don't need an attribute create sop to create those custom variable mappings (so you can type $MY_VAR), Houdini already gives you those: $CR, $CG, and $CG for Red, Green, and Blue respectively
if (sleepy == true)
add_caffeine();
else
add_caffeine();
add_caffeine();
else
add_caffeine();
-
- Quick Links