bloodlocust
07-03-2002, 12:46 AM
Hello everyone!
The following is an extract from a call I'm doing. It's a custom material I am making as part of my toolset for game development.
mapbutton layer0 " Empty " tooltip:"Select texture for layer 0"
on layer0 picked texmap do
(
delegate.diffusemap = texmap -- write to diffuse layer 1
layer0.text= texmap.filename -- write filename back to button
)
The trouble I am having is, that I am trying to create a simple button, which when clicked on, automatically takes us to the Bitmap material browser. Right now it requires the user to choose from the materials/maps dialog - I want to avoid this and just load the bitmap to the diffuse slot. I like the bitmap chooser though as it has a preview window...
Any advice would be appreciated! :)
The following is an extract from a call I'm doing. It's a custom material I am making as part of my toolset for game development.
mapbutton layer0 " Empty " tooltip:"Select texture for layer 0"
on layer0 picked texmap do
(
delegate.diffusemap = texmap -- write to diffuse layer 1
layer0.text= texmap.filename -- write filename back to button
)
The trouble I am having is, that I am trying to create a simple button, which when clicked on, automatically takes us to the Bitmap material browser. Right now it requires the user to choose from the materials/maps dialog - I want to avoid this and just load the bitmap to the diffuse slot. I like the bitmap chooser though as it has a preview window...
Any advice would be appreciated! :)
