can't randomize scale factor within foreach node
4032 9 2- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
- eetu
- Member
- 606 posts
- Joined: May 2007
- Offline
Works, if you use something like rand(prim(“../each1”, 0, “a”, 0)*7.771)
I don't think Transform SOP usually works with per-primitive attributes like that, it applies the same transformation to the whole input. That's why you're using a ForEach SOP in the first place, right..
In fact, you could do this with a Primitive SOP - without a ForEach.
I don't think Transform SOP usually works with per-primitive attributes like that, it applies the same transformation to the whole input. That's why you're using a ForEach SOP in the first place, right..
In fact, you could do this with a Primitive SOP - without a ForEach.
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- eetu
- Member
- 606 posts
- Joined: May 2007
- Offline
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- eetu
- Member
- 606 posts
- Joined: May 2007
- Offline
PradeepBarua
If you want to randomize then multiply rand($PN) by forvalue
rand($PN*125.5614)*rand(stamp(“..”, “FORVALUE”, 0))
put this in uniform scale.
Sorry to nitpick, but in that case you should remove the rand($PN*125.5614) part, as that is constant, and it will actually limit the return value of the whole expression to between 0 and rand(0) ..
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- oat
- Member
- 479 posts
- Joined: Dec. 2009
- Offline
-
- Quick Links