Go to: Synopsis. Notes. Return value. Keywords. Related. MEL examples.

Synopsis

void editAttrLimits(string $attr, float $min, float $max)

Edit the attribute min and max of dynamic attributes.

Notes

This command only works on numeric type attributes that can have limits defined. No checking is performed to verify the attribute type so check types before calling it.

Return value

None

Keywords

edit attribute limits min max

Related

addAttr, attributeQuery

Arguments

Variable Name Variable Type Description
$attrstringAttribute to be altered
$minfloatNew attribute minimum
$maxfloatNew attribute maximum

MEL examples

      createNode -n sinNode transform;
		addAttr -at double -min 0.0 -max 2.0 -ln sinValue;
		attributeQuery -range -n sinNode sinValue;
		// Result: 0 2 //

		editAttrLimits( "sinNode.sinValue", -1.0, 1.0 );
		attributeQuery -range -n sinNode sinValue;
		// Result: -1 1 //