leytonian Posted December 22, 2017 Share Posted December 22, 2017 (edited) Hi I am typing this simple expression in Attribute wrangler and it errors aout vector pp= { random(10), random(10), random(10) }; but this is fine vector pp= {1,1,1 }; Edited December 22, 2017 by leytonian Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 22, 2017 Share Posted December 22, 2017 (edited) i think {} are for literals only....ie. HARDCODED...like what you had or {0,1,0} no variables, formulae....smoke and mirrors, sleight of hands of any kind... eg: say if I apply a point SOP on a grid to make it higher by 1 like: self + {0,1,0} works fine so now I try: self + {0,1+1,0}....won't work.....even if it's simple as 1+1 Edited December 22, 2017 by Noobini Quote Link to comment Share on other sites More sharing options...
Sean-R Posted December 22, 2017 Share Posted December 22, 2017 Yup, what Noobini said. Try: vector pp = set( random(10), random(10), random(10) ); Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 22, 2017 Share Posted December 22, 2017 oh yeah thanks...Sean-R, I forgot to show the 'workaround'.....doh... Quote Link to comment Share on other sites More sharing options...
leytonian Posted December 22, 2017 Author Share Posted December 22, 2017 Hi Thanks for all the replies, it makes perfect sense and the remedies are easy. cheers 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.