Community
Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I place the sphere in a random position?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
kyororin8732
221 Views, 2 Replies

How do I place the sphere in a random position?

I'd like to place a sphere with random values ​​on a plane and make something that blinks in color, but I don't know. I was able to get a plane position and place the sphere at the point position. But it had an array and couldn't be irregular. What should I add?

2 REPLIES 2
Message 2 of 3

Hi,

 

Use generate_sample_locations to get an array of random locations on your plane. Then, you can connect sample_locations into a sample_property node to get the positions of those locations. For more information, see Generate random locations.

 

Note that it will always be an array, even if you want only one location (in this case an array with only one element). You can use get_from_array to return the first (that is, 0th) element, but I suspect that for your purposes you can actually just keep using the array no matter how many elements it has. Also, you need to change the seed if you want a different random location.

 

I hope that helps,

gray


Grahame Fuller
Learning Content Developer
Message 3 of 3

Hello! Thank you for politely teaching me. generate_sample_location and sample_property solved my problem. There are many unknown nodes that I still don't understand, and I am studying every day. thank you.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report