Is it possible to use Node Editor to calculate triangles?

Is it possible to use Node Editor to calculate triangles?

g2m.agent
Collaborator Collaborator
746 Views
1 Reply
Message 1 of 2

Is it possible to use Node Editor to calculate triangles?

g2m.agent
Collaborator
Collaborator

For example, input two lengths and one angle to get another angle?

0 Likes
Accepted solutions (1)
747 Views
1 Reply
Reply (1)
Message 2 of 2

daunish
Collaborator
Collaborator
Accepted solution

You sure could. Although the setup would make the calculation rigid.

 

Two options.

1 - While there are a few math nodes available in the node editor. Some of the more complex functions like cosine aren’t.  Arnold has math shaders that are great. But these only get calculated at render time so you wouldn’t be able to feed it to an attribute (I think but totes could be wrong, worth a try just in case).

 

2 - This is probably your best option for feeding to an attribute. Use an expression node! They are pretty simple and you can find the expressions you need online. You’ll just need a basic understanding of coding. But with this you can fetch and data and run your equations, then output directly to an Attrib.

 

let me know if this helps at all!

0 Likes