scuy Posted July 2, 2021 Share Posted July 2, 2021 I want to copy point one attribute to another attribute. But it seems not correct. I have point attribute @N , @tangnetv. In vex , i tried @N=@tanget. I hope @N and @tanget be same direction. But it seems something wrong direction. I've attached houdini file. What happen is this ? tes.hiplc Quote Link to comment Share on other sites More sharing options...
ikoon Posted July 2, 2021 Share Posted July 2, 2021 (edited) Hi HIroki, you have to cast v@tangent like this: @N = v@tangentv; Without v@, Houdini considers only first float of @tangent and casts it into other components. For example tangent {-0.520081 , 2.20691e-08 , 0.854117} becomes N {-0.520081, -0.520081, -0.520081} You may check the Geometry Spreadsheet. By the way @N or @v or other common attributes work without v@, just because they are so common that SideFX saved our time so we don't have to type it EDIT: You may read more about the "Non-float attributes with known types" here in the docs: https://www.sidefx.com/docs/houdini/vex/snippets.html Edited July 2, 2021 by ikoon Quote Link to comment Share on other sites More sharing options...
scuy Posted July 5, 2021 Author Share Posted July 5, 2021 Dear ikoon Thank you detail expression. It be clear . Thanks again!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.