|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
|
Autodesk® Entertainment Creation Suite Ultimate®
|
| Create cluster out of soft selection?
|
|
|
Hi,
Can anyone tell me how I can create cluster out of soft selection?. Maybe this is more API question but if any one can tell me what I need to do( or what command or method I need to use)it will be greatly appreciated.
Thank you,
Arthur.
|
|
|
|
this looks like what you’re after
http://riggerman.animationblogsp...ft-cluster-python-module/
try pressing 'b'…
ldunham.blogspot.com
|
|
|
|
That is exactly I have been looking for, Unfortunately for me, I can`t use his module for work, so I need to write my own and I couldn’t`t find any information regarding how he implement it in his code.
Anyone done this before?
I found this from SDK,forum so I maybe look into this later
http://www.the-area.com/forum/au...-selection-weight-values/
Thank you,
|
|
|
|
Hi,
I’m facing the same situation…
Did you find a way to implement it yourself ? If so could you give some guidlines ?
My current idea is to create a custom MPxDeformerNode… (using python for prototyping, then C++ if performance aren’t good enough)
Thx in advance !
|
|
|
|
script here,
http://ldunham.blogspot.com/2012/03/python-create-cluster-from-soft.html
uses Brian Escribano’s softSelection code, to gather data from soft selection -om.mglobal.getRichSelection(om.MRichSelection()) and then I create a new cluster from the info.
Its fairly quick.
try pressing 'b'…
ldunham.blogspot.com
|
|
|
|
Thx for the fast reply !
I have already tried your script, and it works well but I’m more interested in writing my own and understanding it.
|
|
|
|
no worries.
This should help you on your way.
http://groups.google.com/group/p...ad/ab526575d2b26f23?pli=1
try pressing 'b'…
ldunham.blogspot.com
|
|
|
|
This script would be amazing if I could just get it to work. I downloaded the file “ld_createSoftCluster.pyc” from the page in your above link and I placed it in my “Documents\maya\2012-x64\scripts” folder.
However, when I run “import ld_createSoftCluster as sc sc.ld_createSoftCluster()” it returns “Syntax error”.
Any idea what the problem is?
3ds Max 2013, Maya 2013
Windows 7 Ultimate 64 Bit
Core i7, 12GB RAM
Nvidia Quadro FX 3700 (Driver 297.03)
|
|
|
|
hmm not sure?
your executing in python and under separate lines? ie
import ld_createSoftCluster as sc
sc.ld_createSoftCluster()
(just checking the simple fixes first :) )
try pressing 'b'…
ldunham.blogspot.com
|
|
|
|
Ah, no I was just entering the entire line into the MEL section. Pardon my Python ignorance. :)
Thanks, it works great! I wish I had known about this a while ago. It should be standard!
3ds Max 2013, Maya 2013
Windows 7 Ultimate 64 Bit
Core i7, 12GB RAM
Nvidia Quadro FX 3700 (Driver 297.03)
|
|
|
|
haha, it happens to me far too often.
No problem.
Forgot to mention, it also works with falloff mode - global (which can be very handy)
try pressing 'b'…
ldunham.blogspot.com
|
|
|
|
|
|