maya bend deformer algorithm

354 views
Skip to first unread message

Michał Frątczak

unread,
Nov 26, 2015, 11:55:34 AM11/26/15
to Python Programming for Autodesk Maya
Hi
I need to recreate maya's bend deformer as a custom tool.
Does anybody have working code ?

thanks !
-michal

Rémi Deletrain

unread,
Nov 26, 2015, 2:31:58 PM11/26/15
to Python Programming for Autodesk Maya
You try linearBend deformer before ?

f.michal

unread,
Nov 26, 2015, 2:45:22 PM11/26/15
to python_in...@googlegroups.com
W dniu 2015-11-26 o 20:31, Rémi Deletrain pisze:
> You try linearBend deformer before ?
>
I'm not sure what you mean ?

Roy Nieterau

unread,
Nov 26, 2015, 3:12:04 PM11/26/15
to Python Programming for Autodesk Maya
This should get you there:
https://github.com/BigRoy/maya-matrix-deformers/blob/master/matrix_deform/nodes/matrixBend.py

Note that this is also calculating an actual rotational value along with it which isn't needed if you're doing pure point/vertex deformation.

Why do you need a custom implementation? :)

f.michal

unread,
Nov 26, 2015, 3:16:35 PM11/26/15
to python_in...@googlegroups.com
W dniu 2015-11-26 o 21:12, Roy Nieterau pisze:
Thanks!
What I need to do is hundreds of words orbiting around common center
axis (cylindryically).
I want to create animation with particles and instancing and bend words
with displacement shader.

Marcus Ottosson

unread,
Nov 26, 2015, 3:54:23 PM11/26/15
to python_in...@googlegroups.com

What I need to do is hundreds of words orbiting around common center axis (cylindryically).

Is this for learning purposes, or production? You can technically achieve that with the regular bend deformer in Maya, and if that’s not enough, you could also create a joint chain per vertex (or even approximately) and simply rotate them all along one axis, and if that’s not enough you could also bend-deform or joint deform a regular poly cylinder (or even a plane), and wrap deform your text to that.




--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/56576898.1070405%40gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

f.michal

unread,
Nov 26, 2015, 4:15:42 PM11/26/15
to python_in...@googlegroups.com
This is for production.
Particles give a nice procedural approach, where I can easily control spacing, speed and most important: number of words.
If this fails I'll fallback to deformers, but that's not iteration friendly path :)

W dniu 2015-11-26 o 21:54, Marcus Ottosson pisze:
Reply all
Reply to author
Forward
0 new messages