THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/05/2011 at 02:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
Hi,
I'm trying to read out some attributes from different objects.
for (i=0; object(i); i++) {
println(object(i)->GetName());
container = object(i)->GetContainer();
println(container->GetData(ID_LAYER_LINK));
println(container->GetData(ID_BASEOBJECT_VISIBILITY_EDITOR));
}
The result I get is always 'nil' for the GetData() instructions. The GetName() prints out the name, so I'm doing something wrong in getting the container. How does one do this normally?