Malkalypse
@malkalypse
New Member
Joined: Feb 15, 2024
Topics: 269 / Replies: 900
Reply
RE: Set photometric light preset via maxscript?

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).

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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), …

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

Anyone else want to take a crack at it? I feel like I’m chasing my tail here.

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…?

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

I still haven’t been able to figure out how to do either of those in this context…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

Heilandzack: the preset is specifically the color, and when working with photometric lights the preset selected from the dropdown overrides any other …

8 years ago
Forum
Reply
8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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…

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

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?)

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

I adapted part of Serejah’s code to find the correct handle for me. Seems to be working for now! Thanks to you both!

8 years ago
Forum
Reply
RE: Set photometric light preset via maxscript?

Could you unpack hwnd = <combobox hwnd> for me?

8 years ago
Forum
Page 4 / 78