can the shrink wrap deformer be scripted in maya?

519 views
Skip to first unread message

e955...@gmail.com

unread,
Sep 19, 2014, 3:50:21 PM9/19/14
to python_in...@googlegroups.com
Hey there,

i was wondering if the shrink wrap deformer in maya can be scripted in python.

ive been looking everywhere online and i cant find anything about it.

could anyone help me pleeasee,


thanks,
Sam

Paul Molodowitch

unread,
Sep 19, 2014, 8:38:04 PM9/19/14
to python_inside_maya
The short answer is: yes, it could be, but you wouldn't want to (unless it's purely as an educational sort of exercise, or a prototype, etc).

The reason is that deformers are one of those things that you really want to be fast.  They can operate on meshes with a huge number of verts, and you can have a lot of deformers all chained together... and python is, by it's nature, orders of magnitude slower than C++.

However - if you're undeterred, and what you're looking for is just how to write a deformer in python in general, you can check out the yTwistNode, which is implemented in c++ AND python.  This can help you learn how to "translate" from c++ to python, as most of the documentation, examples, etc you will find will be in c++.


--
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/16bdcc7d-e934-4951-bc1a-94050172bbe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

e955...@gmail.com

unread,
Sep 20, 2014, 5:34:37 PM9/20/14
to python_in...@googlegroups.com
thankyou elrond79!,

yes i basically want to add the command to a python script. there are alot of iterations of shrinkrapping i need, so i though best to just put some sort of command in a loop, rather than do manually.

thanks for telling me about twistNode.

Sam

Reply all
Reply to author
Forward
0 new messages