Does Maya node editor support math.abs node ?

Does Maya node editor support math.abs node ?

jiajun.coding
Advocate Advocate
1,256 Views
3 Replies
Message 1 of 4

Does Maya node editor support math.abs node ?

jiajun.coding
Advocate
Advocate

Someone tells me that I should use pow(x * x, 0.5)...

0 Likes
Accepted solutions (2)
1,257 Views
3 Replies
Replies (3)
Message 2 of 4

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

Maya does not have a bouilt in Node that converts values to absolutes.

But you can use two multiply divides, both set to power, the first one power of 2, second one power of 0.5 to achieve the same effect. Or create an expression with the formula you already mentioned.

 

There are also 3rd party plugins that do this:

https://github.com/serguei-k/maya-math-nodes

 

I hope it helps!

Message 3 of 4

jiajun.coding
Advocate
Advocate

Thanks, Kahylan.

Hope that Maya will support more generic math nodes in the future :).

0 Likes
Message 4 of 4

etienne_allard
Autodesk
Autodesk
Accepted solution

Hi!

There's now an "absolute" node in Maya 2024 (and some other new basic math nodes).

absolute node (autodesk.com)

Etienne Allard
Sr. Software Developer