I'm trying to add to my rollout an option for the user to add a material of there choice to the selected object.
Whenever i try to do it, it wont convert the image so it will work on the box.
My code is:
button openbox "Add Material"
on openbox pressed do
(
myMap = getOpenFileName \
caption:"Open A Test File:" \
filename:"c:"
myMap = uvwMap mapType:4
addmodifier selection myMap
m = myMap
selection.material = m
)
miauu · 2013-04-15
barigazy · 2013-04-15