JJ FX Posted September 13, 2017 Share Posted September 13, 2017 Hi, trying to get the normal of the specific prim. However wrangle complains thats the wrong syntax. vector norm; getattribute(geoself(), norm, "primitive", "N", 0); Quote Link to comment Share on other sites More sharing options...
Sepu Posted September 13, 2017 Share Posted September 13, 2017 You can use the prim function instead if that isnt working. vector norm; norm = prim(0, "N", 0); Quote Link to comment Share on other sites More sharing options...
JJ FX Posted September 13, 2017 Author Share Posted September 13, 2017 (edited) oh I was looking for sth like this. Actually when I used this, wrangle still complained for wrong syntax. Had to create new wrangle. And now both examples work. So Im wondering. Do wrangles cache the code? Edited September 13, 2017 by JJ FX Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 13, 2017 Share Posted September 13, 2017 (edited) There is a dedicated function called prim_normal() which returns the normal at a specific prim UV coordinate of any requested primitive. Edited September 13, 2017 by konstantin magnus 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.