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
11919 5 1- rigid
- Member
- 4 posts
- Joined: 11月 2006
- Offline
- BriAnimations
- Member
- 19 posts
- Joined: 7月 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
- スタッフ
- 3464 posts
- Joined: 7月 2005
- Offline
- rigid
- Member
- 4 posts
- Joined: 11月 2006
- Offline
- rigid
- Member
- 4 posts
- Joined: 11月 2006
- Offline
- bwalters
- Member
- 2 posts
- Joined: 9月 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