Jump to content
leytonian

Why does this simple line errors out?

Recommended Posts

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 by leytonian

Share this post


Link to post
Share on other sites

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 by Noobini

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×