PDA

View Full Version : help plzzz


Tiger_White
03-27-2006, 12:43 PM
I am trying to query the per particle as as well as per object attributes of the particle Object in my sceine. but i have this problem . Not really sure if thats how its done.

string $sel[]=`ls -sl`;
for ($objs in $sel)
{
print ("\nlist Of Objcts " + $objs);
string $attrs [] =`getAttr -tye $objs`;

for ($cycle in $attrs)
{
//print them all
}
}


I will appreciete your help


Tiger:thumbsup:

volXen
03-30-2006, 11:52 PM
If you want to get an attribute you need to use the syntax object.attribute.
So after you got your object list do the following:

...
string $attrs = `listAttr ($objs)`;

for ($cycle in $attrs)
{
string $test = `getAttr ($objs + "." + $attrs)`;
print $test;
}
...

CGTalk Moderation
03-30-2006, 11:52 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.