help in light setting

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/09/2008 at 17:48, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
little help in setting a light shadow type

i tried as i looked on the sdk :

BaseContainer *con = light->GetDataInstance();
con->SetParameter(LIGHT_SHADOWTYPE,1);

but give me errors ..

and i try this for the color :

light->SetColor(Vector(255,0,255));

give me errors too ...

before you tell me to see sdk examples ... i havn't them

i download the c++ sdk html files & chm windows help
only the structure of class & api

but no examples ...

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/09/2008 at 17:51, xxxxxxxx wrote:

the strange thing that :

BaseContainer *data = cube->GetDataInstance();
data->SetBool(PRIM_CUBE_DOFILLET,true);

works fine

but this didn't work :

BaseContainer *con = light->GetDataInstance();
con->SetReal(LIGHT_SHADOWTYPE,1);

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/09/2008 at 20:12, xxxxxxxx wrote:

Some information is stored in BaseContainers, others in 'Parameters'. LIGHT_SHADOWTYPE requires you use SetParameter().

baseObject->SetParameter(DescID(LIGHT_SHADOWTYPE), GeData((LONG)LIGHT_SHADOWTYPE_SOFT), NULL);

It's not a Real value either, it is a drop-down list item selection (so LONG).

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 10/09/2008 at 07:04, xxxxxxxx wrote:

yes that works fine ...

thanks Robert ..