PDA

View Full Version : getAttr. problem "trouble with polySmoothFace"


safakoner
12-31-2003, 07:50 PM
Hi

I am in trouble with polySmoothFace. I wrote a code. My code is below.

I execute the command and do nothing but if I click polySmoothFace# in channel box and open the attr. than
execute the script the code is working. I want to run this script without click the channel box.
How can I do that ?

Thanks.



string $psl[] = `ls -sl -type polySmoothFace`;
for ($i in $psl)
{
int $aha = `getAttr ($i + ".divisions")`;
print $aha;
}

sbp
01-01-2004, 12:00 AM
Hi equinox,

string $sn[] = ls -sl -dag -type mesh;
string $psl[] = listConnections -type polySmoothFace $sn[0];

safakoner
01-01-2004, 10:34 AM
hi
Thank you, this is working. :bounce:

CGTalk Moderation
01-17-2006, 01:00 AM
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.