Run on elements of Array wrangle issue
1046 3 0- sniegockiszymon
- Member
- 67 posts
- Joined: June 2022
- Offline
Hello, I want to control pscale (or "widths" in usd naming)on the lop level. I've written wrangle to do so. I am not sure if my understanding of syntax is correct. When I use code as in picture one, everything works fine but those arrays are not comfortable because I want to use Ids as seed for randomization. Then I've tried run on elements checkbox, but I can't make it work, any suggestions about syntax?
Edited by sniegockiszymon - Dec. 3, 2022 13:59:14
- jsmack
- Member
- 7796 posts
- Joined: Sept. 2011
- Online
- sniegockiszymon
- Member
- 67 posts
- Joined: June 2022
- Offline
jsmackYeah, but I've already randomized pscale thats why I am multiplying and I dont want to use single value. There was pscale set in sops before exporting to usd, but wrong scale and during lookdev I want to change, it as well as randomize a little bit more (bigger difference between samllest and largest).
for the second one, the functions usd_attrib and usd_setattrib are still going to be array-based. To set a single value, use a bind instead.
e.g.
@widths *= 0.1;
- jsmack
- Member
- 7796 posts
- Joined: Sept. 2011
- Online
-
- Quick Links