How to access light intensity parameter?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-20
01:39 PM
- last edited on
‎2021-09-15
12:36 PM
by
Noemi Balogh
‎2020-03-20
01:39 PM
Hello everybody!
Seems like I need to update additional parameters that are not part of the lamp structure.
Let's say I need to update light Intensity. We haveAPI_LampType::lightColor -> API_RGBColor but I can't find intensity there.
It's not a light related parameter? If not, how am I supposed to access that particular parameter?

Thanks
Seems like I need to update additional parameters that are not part of the lamp structure.
Let's say I need to update light Intensity. We have
It's not a light related parameter? If not, how am I supposed to access that particular parameter?

Thanks

Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-20 02:02 PM
‎2020-03-20
02:02 PM
Ok, now I see, this parameter is somehow linked with GDL object and for general light, it's clamped from 0..200.
So the better question, perhaps, is maybe how to access those GDL params??
So the better question, perhaps, is maybe how to access those GDL params??

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-21 11:03 AM
‎2020-03-21
11:03 AM
Object parameters are stored in a separate memo structure. This allows you to avoid loading all the parameter data if you don't need it (for efficiency).
You can access this data directly usingACAPI_Element_GetMemo to fill the API_ElementMemo structure, but this is fairly complex for parameter access.
I think the best approach in your case is to useAPIAny_GetActParametersID . The documentation for APIAny_OpenParametersID has some example code using this method that I think you will find useful.
You can access this data directly using
I think the best approach in your case is to use
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-23 02:47 PM
‎2020-03-23
02:47 PM
Thanks, Ralph. I'll take a look!