jhcl21 Posted March 14, 2017 Share Posted March 14, 2017 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted March 14, 2017 Share Posted March 14, 2017 It does not work because the attribute does not exist. You have "Forked" the network. Try placing the Color node after the AttributeWrangle where you assign the @dist to @Cd. Quote Link to comment Share on other sites More sharing options...
jhcl21 Posted March 14, 2017 Author Share Posted March 14, 2017 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 !! Quote Link to comment Share on other sites More sharing options...
Atom Posted March 14, 2017 Share Posted March 14, 2017 (edited) 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 March 14, 2017 by Atom 1 Quote Link to comment Share on other sites More sharing options...
acey195 Posted March 14, 2017 Share Posted March 14, 2017 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. Quote Link to comment Share on other sites More sharing options...
jhcl21 Posted March 14, 2017 Author Share Posted March 14, 2017 (edited) Atom, acey195 Thanks! I will use Wrangles for production. Edited March 14, 2017 by jhcl21 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.