Hey all,
I'm trying to use the value of the radius of soft selection to drive an attribute of an object (in my case, a custom float attribute called 'Radius', which drives the scale of a sphere). The ideal case would be: Change soft select radius using hotkey (press b -> drag -> release b) --> 'Radius' attribute is updated to match soft select radius I tried doing this with an expression on the 'Radius' attribute with an evaluation of 'Always': --------------------------------------------- float $sSD = `softSelect -q -ssd`; null1.Radius = $sSD; --------------------------------------------- This resulted in the 'Radius' attribute matching the soft select radius, but the sphere being driven by the 'Radius' attribute to just pop back and forth like crazy between different scales. The 'Radius' attribute would also only update when I changed the frame I was on (which was to be expected). Is there a better way of accessing the value of the soft selection radius? If not, does anyone here know of a way to recreate the hotkey (press button -> drag -> release button) so it's exactly the same, except it changes an attribute that is not the soft select radius? Thanks, Derek -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9e4dab06-0699-49e2-8f61-52249b5341e9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
