mediumRare
12-02-2004, 12:52 AM
Hi,
If I select a couple objects and run the following:
string $myass[] = `ls -sl`;
int $attrib = `getAttr -type ($myass[0] + ".visibility")`;
i get this:
// Warning: line 2: Converting string "bool" to an int value of 0. //
// Result: 0 //
My question is....why dont I get an integer returned from my getAttr command. I wanna know if the object is visible or not!! For some reason it returns a "bool" and that "bool" gets converted to a zero so it thinks everything is not visible.
How can I re-write the command to get me a integer from the visibility of an object.
Thanks in advance for your help.
A
If I select a couple objects and run the following:
string $myass[] = `ls -sl`;
int $attrib = `getAttr -type ($myass[0] + ".visibility")`;
i get this:
// Warning: line 2: Converting string "bool" to an int value of 0. //
// Result: 0 //
My question is....why dont I get an integer returned from my getAttr command. I wanna know if the object is visible or not!! For some reason it returns a "bool" and that "bool" gets converted to a zero so it thinks everything is not visible.
How can I re-write the command to get me a integer from the visibility of an object.
Thanks in advance for your help.
A
