weightedNode is not an attribute.
If you want to manipulate this you have to use the percent command:

percent -v $floatValue cluster1;

S. J. Tubbrit

06-09-2007, 09:45 PM

Hi,

I don't want to manipulate it's value

In terms of what I'm trying to achieve, I have a cluster on a spline, one of many, I want to replace that cluster with a more meaningful representation that I have created as a nurbs object, for example, this has been called Spine_Bottom_Control1, if I open the clusters attributes and then select it's shape node, under the weighted node, I can replace the text there with my Spine_Bottom_Control1, now I have control of the cluster through my Spine_Bottom_Control1 control, the cluster itself now does nothing if selected, whereas I can do all this manually, none of it is echo'd through the script editor in such a way that I can replicate it through script. I don't know mel script well enough to dig deeper and achieve this manually, so hoping that someone may know how to do this through script ?

Cheers

S. J. Tubbrit

06-10-2007, 03:28 PM

This is about as much info as I could find on the net : -

'To get rid of the default “C” handle the cluster creates, create a
nurbsSphere and make it the weighted node of the cluster (many text
describe this process, it’s just a matter inputting the .worldMatrix[
0] of your control objects (nurbs sphere) into the .matrix attribute of
your cluster node, and setting the “weighted node” attribute to be the
name of the control object).'

If that helps anyone ?

I've tried the first step of what it says above, but the connection editor tells me it can't connect those two types, more hair pulling ensues..... :(

Cheers

S. J. Tubbrit

06-10-2007, 03:49 PM

Aha! No worries, it's a hack, but I managed to figure something out ! :)