Jump to content

using @dist in color SOP


Recommended Posts


Hi, everyone.
I'm new to Houdini and studying ray sop, now.

I'm trying to get Depth info as Color on a grid.
It works , if I used point wrangle but it not working if I used @dist in color sop.

Please teach me why it is not working and how I can make it works on color sop.

thank you
 

pointWrangle.jpg

colorSOP.jpg

Link to comment
Share on other sites

Thank you Atom!

I could find what I missed by your answer.

Yes it works if node Color placed after the AttributeWrangle node.

I have been trying avoid use the wrangle node (sorry I have not written this) and your answer gave me a hint. 

I used attributeCreate node instead of color, and it works!  Thank you !!

 

 

attrCreate.jpg

Link to comment
Share on other sites

Attribute Wrangles are not to be avoided, instead embraced. AttributeCreate is the old style, Wrangles are the new style. But either way can work.

Edited by Atom
  • Like 1
Link to comment
Share on other sites

4 minutes ago, Atom said:

Attribute Wrangles are not to be avoided, instead embraced. AttributeCreate is the old style, Wrangles are the new style. But either way can work.

For creating static values, attribute create is still the faster way, but if you want to have different point values based on certain conditions, wrangles are much faster than the old H-script code.

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