PDA

View Full Version : set nurbs tessellate


minos365
07-04-2003, 04:08 PM
i write some command to set a lot of nurbs surface tessellate to 1.5,but it don not work,can you let me what is wrong


string $list[];
$list=`ls -sl `;


string $ball;


for ($ball in $list)
{
$shape=`pickWalk -d down $ball`;

$ball=$shape[0]

setAttr ($ball + ".uDivisionsFactor" + " " + 1.5);
}

misterdi
07-05-2003, 05:03 AM
There are several mistake on the script, here is the modified script

string $list[];
$list=`ls -sl `;


string $ball;


for ($ball in $list)
{
$shape=`pickWalk -d down $ball`;

// terminate each line with semicolon
$ball=$shape[0];

// setAttr has 2 argument
// Attribute name and Attribute value
setAttr ($ball + ".uDivisionsFactor") 1.5;
}

minos365
07-05-2003, 04:05 PM
thanks a lot
wish you have a good national day

CGTalk Moderation
01-15-2006, 01:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.