Jump to content

copy point attribute problem

Recommended Posts

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 ?



Link to comment
Share on other sites

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:



Edited by ikoon
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...