I think I would know how to do that using the SDK, but not with Maxscript (which is exactly the opposite of my usual situation).
No, it doesn’t even change the preset selection. Also, it’s not failing because of the selection change immediately after (one of my first thoughts), …
Ok, so I’ve discovered that if I add opening and closing parentheses to the output string, it does not work, i.e. this works: select $TPhotometricLig…
Okay, thought I was done with this, but if it’s going to do what I want I need it to work in this context, and I’m having some trouble with it. — (a…
Goddamn, Denis. If I could knock something like that together in an hour I would be… well, a more proficient coder than I am now Seriously though, y…
Anyone else want to take a crack at it? I feel like I’m chasing my tail here.
Yeah, I saw that. No way to access from Maxscript though… For current purposes, I’m guessing that CB_SETITEMDATA is what I need to get in there? Or…?
I’m talking about both. The value is not updating beyond the UI selection. Also, if you click off of the selected light and directly back onto it afte…
I still haven’t been able to figure out how to do either of those in this context…
Heilandzack: the preset is specifically the color, and when working with photometric lights the preset selected from the dropdown overrides any other …
How would I do either of those?
Actually, now that I have tried it in a practical test, it looks to me like the code is setting the dropdown list to the correct value, but the actual…
Out of curiosity, are there any other ways to change a photometric light’s preset? (i.e. which do not require the light to be selected?)
I adapted part of Serejah’s code to find the correct handle for me. Seems to be working for now! Thanks to you both!
Could you unpack hwnd = <combobox hwnd> for me?