getAttr. problem "trouble with polySmoothFace"

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 12 December 2003   #1
Question getAttr. problem "trouble with polySmoothFace"


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 ?


string $psl[] = `ls -sl -type polySmoothFace`;
for ($i in $psl)
int $aha = `getAttr ($i + ".divisions")`;
print $aha;
Old 01 January 2004   #2
Hi equinox,

string $sn[] = ls -sl -dag -type mesh;
string $psl[] = listConnections -type polySmoothFace $sn[0];
Old 01 January 2004   #3
Thank you, this is working.
Old 01 January 2006   #4
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:00 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.