AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Create cluster out of soft selection?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  
2 pages: 1.2 last

Create cluster out of soft selection?
Rate this thread
 
61525
 
Permlink of this thread  
avatar
  • Total Posts: 5
  • Joined: 15 December 2008 02:14 AM

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.



Replies: 0
avatar
  • ldunham1
  • Posted: 31 October 2011 06:32 AM

this looks like what you’re after

http://riggerman.animationblogsp...ft-cluster-python-module/



try pressing 'b'…
ldunham.blogspot.com

Replies: 0
avatar

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,



Replies: 0
avatar
  • NeZuS
  • Posted: 07 March 2012 02:10 AM

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 !



Replies: 0
avatar
  • ldunham1
  • Posted: 07 March 2012 03:42 AM

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

Replies: 0
avatar
  • NeZuS
  • Posted: 07 March 2012 05:07 AM

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.



Replies: 0
avatar
  • ldunham1
  • Posted: 07 March 2012 05:49 AM

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

Replies: 0
avatar

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)

Replies: 0
avatar
  • ldunham1
  • Posted: 07 March 2012 11:50 AM

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

Replies: 0
avatar

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)

Replies: 0
avatar
  • ldunham1
  • Posted: 07 March 2012 12:08 PM

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

Replies: 0
2 pages: 1.2 last