Message 1 of 6
mapbutton - how to use in a material
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I´m trying to make a "mapbutton" work like a normal map button in a standard material.
What I mean is a map button / slot where I can select a map from the map list when the
button is empty and go one level deeper to the map when a map is inside the button and
it´s clicked.
The current maxscript mapbutton can open the new maps selection dialog, but when a map
is assigned it´s not automatically acting like the usual map buttons in standard materials.
I´ve not been able to successfully use this button in a way that users are used to it. The only
thing that I found out was that assigning a variable to the button itself will help.
But there is still a problem with this method, as I cannot assign a specific map from a material
to the button, it´s always the same diffuse map that is connected to the button.
example:
parameters main rollout:mapbuttontest
(
source_map_name type:#string ui:source_map
)
rollout mapbuttontest "map button test"
(
mapbutton source_map "< Source Map >" tooltip:"Select Source Map" width:300 height:20 align:#center offset:
)
Does anyone know how this could be solved ?
Best,
Martin
I´m trying to make a "mapbutton" work like a normal map button in a standard material.
What I mean is a map button / slot where I can select a map from the map list when the
button is empty and go one level deeper to the map when a map is inside the button and
it´s clicked.
The current maxscript mapbutton can open the new maps selection dialog, but when a map
is assigned it´s not automatically acting like the usual map buttons in standard materials.
I´ve not been able to successfully use this button in a way that users are used to it. The only
thing that I found out was that assigning a variable to the button itself will help.
But there is still a problem with this method, as I cannot assign a specific map from a material
to the button, it´s always the same diffuse map that is connected to the button.
example:
parameters main rollout:mapbuttontest
(
source_map_name type:#string ui:source_map
)
rollout mapbuttontest "map button test"
(
mapbutton source_map "< Source Map >" tooltip:"Select Source Map" width:300 height:20 align:#center offset:
)
Does anyone know how this could be solved ?
Best,
Martin
