Notifications
Clear all
[Closed] Get IParamBlock2 of lights? [C++]
Apr 11, 2016 11:56 am
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
Apr 11, 2016 11:56 am
Hola Víctor.
If NumParamBlocks() returns 0, your object has probably ParamBlock1 instead of ParamBlock2.
Search for ParamBlock type through the object subanims.
Apr 11, 2016 11:56 am
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