Notifications
Clear all

[Closed] Get IParamBlock2 of lights? [C++]

This sounds like a weird question but some lights like standard spot return 0 when asking for their NumParamBlocks(); and others like photometric didn’t return its value for “Distribution” so you cannot know it that’s a Spot, Pointlight etc.

Any ideas on this?

(btw maxscript returns all their properties without problem)

Regards and thank you for your help in advance.

2 Replies

Hola Víctor.

If NumParamBlocks() returns 0, your object has probably ParamBlock1 instead of ParamBlock2.
Search for ParamBlock type through the object subanims.

Thank you I never worked with the old fashioned ParamBlock1 by the way I was thinking they were auto translated, fortunatly I didn’t need that since having the LightObject* I manage to read the info I was needing.

Gracias