Jump to content

Copy Sop Problem


Recommended Posts

If you uncheck 'transform using template point attribute' on copy SOP, it will work, but I think that's not the result you want.

This happens when you copy volumes(ex - 'vel' field will be messed up, so that you need to rotate it afterward).

 

 

Link to comment
Share on other sites

Hi Jessie,

 

The reason they are different is because the copy sop is transforming (rotating) the N but not the Direction attribute you created.

When you create a vector attribute with a bind in vops: it makes it a float[3], so if you look in your geo spreadsheet the Direction attribute will show direction[0], direction[1], direction[2]. But N has N[x],N[y],N[z].

The [xzy] indicates that the attribute should be transformed by any operations that do transformations (like the copy sop with "Transform" using template point attributes). The direction however shows [012] so it will not be transformed.

You can fix this with an add attribute node with "Type Info" set accordingly.

attributeTypeInfo.hipnc

Link to comment
Share on other sites

13 hours ago, cgnema said:

Hi Jessie,

 

The reason they are different is because the copy sop is transforming (rotating) the N but not the Direction attribute you created.

When you create a vector attribute with a bind in vops: it makes it a float[3], so if you look in your geo spreadsheet the Direction attribute will show direction[0], direction[1], direction[2]. But N has N[x],N[y],N[z].

The [xzy] indicates that the attribute should be transformed by any operations that do transformations (like the copy sop with "Transform" using template point attributes). The direction however shows [012] so it will not be transformed.

You can fix this with an add attribute node with "Type Info" set accordingly.

attributeTypeInfo.hipnc

thank you Nema !!!  that's the problem.

Is that a bug or something ? why I export it as a vector and it will be a 3f ?

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