default value for N attribute

   1539   2   0
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
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!
User Avatar
Staff
2590 posts
Joined: July 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)
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
Thank you !
  • Quick Links