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 to use selector instance?

6 REPLIES 6
Reply
Message 1 of 7
andrea_pinto82
577 Views, 6 Replies

How to use selector instance?

Hi,

There is some examples for selector instance?

https://help.autodesk.com/view/BIFROST/ENU/?guid=Bifrost_Common_create_instances_of_geometric_object...

 

How can I use this to choose and combine objects to create the instances?

 

Many thansks

Andrea

6 REPLIES 6
Message 2 of 7
to-to-ro
in reply to: andrea_pinto82

Hi

It's quite easy
I attached simple example

Anton Kalchenko
Message 3 of 7
andrea_pinto82
in reply to: to-to-ro

Thank you very much for your answer and file!
I didnt know about generate_sample_locations node

 

Ok I understand your example, it is a list of instances.
index 0 = sphere
index 1 = cube
etc ..
But I dont see differences with the set_instance_geometry node
I could connect cube and sphere directly with set_instance_geometry and having the same result.

I thought it could select the mesh based on a name or an range of index.

 

I try ot explain my problem.
for example:
2 animations of a cube. rolling and jump.
20 frame for rolling and 15 frame for jump

with a animation snapshot we will have 20 mesh and 15 mesh
If I connect these 2 array in a selector_instance or set_intances_geometry there will be an array with size 35.

 

I found a method to make a counter with "simulation_example" compound.
but I would like to find a way to do a automation to set right range for point_instance_id

 

I hope I explained that right.


Thanks again.

 

Message 4 of 7
to-to-ro
in reply to: andrea_pinto82

"hank you very much for your answer and file!
I didnt know about generate_sample_locations node"

 

I dont think you need it in your case  just use any point data


"But I dont see differences with the set_instance_geometry node
I could connect cube and sphere directly with set_instance_geometry and having the same result.

I thought it could select the mesh based on a name or an range of index."

 

selector_instance can be connected  to another one selector_instance node and set_instance_geometry can not.

 

I don't know what you are trying to achieve. Here me guess in the attached file

 

 

Anton Kalchenko
Message 5 of 7
andrea_pinto82
in reply to: to-to-ro

Thank you Anton for your quick reply.
Sorry for late.

 

Sorry you are right I didn't explain my achieve.
I want create an animation per point and putting some conditions to change the vary animations.

 

I saw your scene, I had tried the time node too, but it is not good because I am linked with the time.

I tried to make an array counter using the simulation example node, the array change every frame.

https://help.autodesk.com/view/BIFROST/ENU/?guid=Bifrost_Common_reference_simulation_simulation_exam...
I don't know if it is correct what I did 🙂
I edited your file.

let me know.

 

But I don't want to go off topic about the selector.

I am using set_instance_geometry in my case.
But In which case would you use multiple selectors?

 

Thanks again!

 

Message 6 of 7
to-to-ro
in reply to: andrea_pinto82

Hi Andrea!

 

"but it is not good because I am linked with the time. I tried to make an array counter using the simulation example node, the array change every frame."

Good but should_simulate uses time node itself

 

"I don't know if it is correct what I did 🙂 I edited your file. let me know."

I tried to dove in your compound and drown ))

It`s hard to understand it without comments and sorry I am really have no free time right now.

Hope more advanced users can help you.

I dont think there is correct or incorrect way exists.

 

"I am using set_instance_geometry in my case. But In which case would you use multiple selectors"

Right now it lets me use different properties for different instances.

 

Best )

Anton Kalchenko
Message 7 of 7
andrea_pinto82
in reply to: to-to-ro

Hi Anton, don't worry, really thank you very much for your answers and interest.
You're right I should have put comments. I'm sorry.

 

Thanks for the selector, I'll try to set different properties and see how it works.
I let you know  🙂

 

Thanks!

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

Post to forums  

Autodesk Design & Make Report