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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Instance at locators

Message 1 of 2
941 Views, 1 Reply

Instance at locators

I was asked in another forum how to create Bifrost instances at Maya locators, with one instance per locator, so that an artist can place, scale, etc. locators and have an instances object. 


I'm re-posting the paraphrased question here so that I can post the solution here. 

Jonah Friedman
Bifrost Product Manager
Message 2 of 2

See attached scene file as well. 




  • I create a value node of type array<float44>
  • Expose the port to Maya, creating a Matrix array port in Maya. Here you can plug in as many transforms as you would like, for example all the locators. This can also be scripted. 
  • Decompose the transforms using matrix_to_srt, which converts the matrix to position, orientation (as quaternion), and scale. This is the form needed by instancing. 
  • Construct a point cloud using the translations, and set point_orientation and point_scale. 
  • Use set_instance_geometry to connect the instance shape we're using. 

Relevant docs - creating instances:

Jonah Friedman
Bifrost Product Manager

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

Post to forums  

Autodesk Design & Make Report