THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/03/2003 at 09:33, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
suprisingly just reading out the BaseContainer of an light object (Olight) does not work for me. i use this method to read out containers of almost everything and it does work, but not for the lights. anyone got an idea why?
the code ..
switch (LightObject->GetData().GetLong (LIGHT_TYPE))
case (LIGHT_TYPE_OMNI) :
case (LIGHT_TYPE_SPOT) :
case (LIGHT_TYPE_PARALLEL) :
it neither works for the light color / brightness nor anything else. all i get are default container values.
thanks in advance
On 17/03/2003 at 10:57, xxxxxxxx wrote:
okay. got it to work with
LightObject->GetParameter (DescID (LIGHT_TYPE) .... ) ...
but .... why ?
On 18/03/2003 at 10:03, xxxxxxxx wrote:
Some parameter are only accessible with GetParameter() and SetParameter() since they aren't stored in the object container.