Hi,
I add N attribute in point wrangle to a box without N attribute.
vector @N= {0,1,0};
vector @n= {0,1,0};
But the result N is not {0,1,0} , it is values by automatic calculated.
And the n is {0,1,0}.
Why?
Another question, I want set N value if no N bounded . But this code may not worked.
if(!isbound(“N”))
{
@N = {0,1,0};
}
How to do it ?
Thanks!
default value for N attribute
1862 2 0-
- jerry7
- Member
- 665 posts
- Joined: 11月 2013
- Offline
-
- mark
- スタッフ
- 2661 posts
- Joined: 7月 2005
- Offline
jerry7
Hi,
I add N attribute in point wrangle to a box without N attribute.
vector @N= {0,1,0};
vector @n= {0,1,0};
But the result N is not {0,1,0} , it is values by automatic calculated.
And the n is {0,1,0}.
Why?
Another question, I want set N value if no N bounded . But this code may not worked.
if(!isbound(“N”))
{
@N = {0,1,0};
}
How to do it ?
Thanks!
Please see http://www.sidefx.com/docs/houdini15.0/vex/functions/computenormal [sidefx.com] (the first case)
-
- jerry7
- Member
- 665 posts
- Joined: 11月 2013
- Offline
-
- Quick Links