01-14-2014, 09:33 PM
I've been trying to make simple script that will add lights to Fume. Here is a very simple version of it:
I just cant get it work. I copy and pasted the function to add lights from the Maxscript documentation.
I can't figure out how to have my button add the light. Any thoughts?
Code:
rf = Omnilight()
rollout chooseFume "Select Fume Container"
(
fn chooseFume = classof obj == FumeFX
pickbutton chooseit "Select Fume Container"
button addFL "Add Lights to FumeFX"
on chooseit picked obj do
(
if obj != undefined do
(
chooseit.text = obj.name
)
)
on addFL pressed do
(
AddLight nodeAdds a light
)
)
createDialog chooseFumeI just cant get it work. I copy and pasted the function to add lights from the Maxscript documentation.
Code:
AddLight nodeAdds a lightI can't figure out how to have my button add the light. Any thoughts?

