Random attribute values on points with randomVOP
4698 9 0- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- mark
- Staff
- 2591 posts
- Joined: July 2005
- Offline
stu
This is a ridiculously simple question, but it's been a while. How do I get random point attributes in the attributeVOP? I've got the global point number running though a randomVOP and then into an addattributeVOP but all of the points are getting the same value…
Hi,
Try the new point wrangle SOP:
f@float_attrib = random(@ptnum);
v@vector_attrib = random(@ptnum);
But using an Attribute VOP, it sounds like you're doing the right thing. ptnum (not primnum) -> seed
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
Thanks Mark,
Did a behaviour change? I can't seem to replicate these results (using the randomVOP, addattributeVOP, etc.):
https://vimeo.com/52551778 [vimeo.com]
Edit: Something changed, just tried it in H13, worked fine.
Did a behaviour change? I can't seem to replicate these results (using the randomVOP, addattributeVOP, etc.):
https://vimeo.com/52551778 [vimeo.com]
Edit: Something changed, just tried it in H13, worked fine.
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- mark
- Staff
- 2591 posts
- Joined: July 2005
- Offline
stu
Thanks Mark,
Did a behaviour change? I can't seem to replicate these results (using the randomVOP, addattributeVOP, etc.):
https://vimeo.com/52551778 [vimeo.com]
Edit: Something changed, just tried it in H13, worked fine.
There should be a note at the bottom of the parameters in the “Add Attribute” VOP which says something to the effect:
Add Attribute VOP
Note: This only changes defaults; use Bind Export VOP to set values.
Does that show up in your version?
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
Let me expand on my previously demonstrated ineptitude:
I need to randomly choose between instanced geometry and the old method (as shown in the video) doesn't work anymore - what's the preferred way to do so (VOPs please, I'd like an interface at the end of this)? What's the best way to assign the “instance” point attribute string in a way that allows a variable to be included as a modifier? ie. /obj/instance1, /obj/instance2, etc.?
I need to randomly choose between instanced geometry and the old method (as shown in the video) doesn't work anymore - what's the preferred way to do so (VOPs please, I'd like an interface at the end of this)? What's the best way to assign the “instance” point attribute string in a way that allows a variable to be included as a modifier? ie. /obj/instance1, /obj/instance2, etc.?
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
-
- Quick Links