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.

0.thumb.JPG.33f56e6e1c093845f70afffca13c055e.JPG

 

 

In vex , i tried @N=@tanget.

I hope @N and @tanget be same direction.

But it seems something wrong direction. 

1.thumb.JPG.86a8b91b03bfebb79fcb55cbe1e35ef5.JPG

 

I've attached houdini file.

What happen is this ?

 

tes.hiplc

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:
https://www.sidefx.com/docs/houdini/vex/snippets.html

image.png.a523a9249178cf14190dac25152199d1.png

 

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.

Guest
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...