@userX4542 wrote:
Hey everyone. Simple questions -
What's the best way to access an object's transformation values (scale, translate, rotate) or any other value for that matter. I see there's a get_geo_property node, a get_property node and a get_propery_any node. What's the difference between these nodes and how do I use them in a graph?
Thanks,
Callum
The get_geo_property node uses the get_property node. And the get_property node uses the get_property_any node.
You shouldn't have to concern yourself too much with the get_property and get_property_any nodes (they are lower level nodes that were necessary to appropriately develop the get_geo_property node).
If you Input by Path a Maya object (like a poly sphere) into the graph (via: MMB drag and drop the object from the outliner to the graph) and then connect this nodes port to the output node you can set a watchpoint on the connection line by right clicking and doing "Add Watchpoint". When the watchpoint is created you will see a table of data. You will notice that the left column of this table has a list of properties.
It is these properties that you can fetch or 'get' with the get_geo_property node. You are getting that geometries property.
On the get_geo_property node you will see that it takes a Bifrost Object input, a data Type and the property name.
If you plug in the polyObject from the Input by Path, then specify point_position as the property, and then connect a value node of type array<Math::float3> then you have essentially grabbed the point_positions of that input object in which you can do stuff to it.
see attached image.

To access an objects transforms one can also pass in the object matrix or world matrix (or inverse matrix) data from the transform or shape of the DG object. This will require one to create a matrix4x4 port inside the bifrostGraph prior to making the DG connection.