phong Posted February 15, 2010 Share Posted February 15, 2010 Hi! I try to do paint values on a polygon mesh to use these values later on in some nodes. I tried using the point() function with having $PT as the point number variable but then there's an error popping up in the node saying that this expression causes an infinite recursion. So how do I use attributes to drive my parameters then when I'm not in the PointSOP? Thank you very much! Phong Quote Link to comment Share on other sites More sharing options...
Darric Posted February 15, 2010 Share Posted February 15, 2010 Which SOP are you aiming the point expression at? Make sure it's not the same one that you're using it in, but one higher up the stream. Using an expression like opinputpath to get the node above might make the most sense. Quote Link to comment Share on other sites More sharing options...
phong Posted February 15, 2010 Author Share Posted February 15, 2010 I used opinputpath(".",0) in the expression. The attribute gets transfered far up higher in the stream. I tried severel SOPs with the same result. But this approach should be theoretically possible or not? Cheers, Phong Quote Link to comment Share on other sites More sharing options...
kgoossens Posted February 16, 2010 Share Posted February 16, 2010 Can you give an example scene? Quote Link to comment Share on other sites More sharing options...
phong Posted February 20, 2010 Author Share Posted February 20, 2010 In this example I get an 'unable to evaluate expression' error, example_scene Quote Link to comment Share on other sites More sharing options...
graham Posted February 20, 2010 Share Posted February 20, 2010 (edited) The SoftTransform SOP does not support operations on a per-point basis. If you look in the help for the operator you will see that PT is not listed in the Local Variables list. The operator has no idea what it means and thus errors. Edited February 20, 2010 by graham Quote Link to comment Share on other sites More sharing options...
phong Posted February 20, 2010 Author Share Posted February 20, 2010 Ah now I understand. Is there any other way to use attributes to drive parameters like in SoftTransform or other SOPs without using the $PT variable then? Quote Link to comment Share on other sites More sharing options...
sanostol Posted February 20, 2010 Share Posted February 20, 2010 the operator does not support this, it works not on a per point basis. use the pointsop for this . or use the peaksop and feed in custom normals to get the desired effect. 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.