About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
Enjoy
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Thanks so much!!!
It is exactly what I wanted thanks you very much. Can you help me whit a one more thing please?
OK, I need something like this...
If selection object have a UVmap modifier -- disable the button, but if not Add modifier to object.
Here my little sample but its work only when "pressed button" and if the uvwmap is the first in the modifier list to the objects selection. I need this only when you select objects or not, and no matter order the UV map in the object selected.
Try(DestroyDialog Rtest)catch()
rollout Rtest "Test-Rollout"
(
button bt1 "DetectUVmap"
on bt1 pressed do
(
for i in selection do
m = 1
if classOf geometry[1].modifiers[m] != Uvwmap then
(
messagebox "Add_UVmap" beep:off
obj = selection[1]
size= obj.max.x - obj.min.x
uvmodifier = uvwmap name:"Fit Bitmap" maptype:4 length:(size) width:(size) height:(size)
addmodifier obj uvmodifier
)
else messagebox "Uvmap exist" beep:off
)
)
CreateDialog Rtest ()
Thanks!
This doesn't make sense with
This doesn't make sense with a mixed selection where some objects already have the modifier and some don't. I'd avoid disabling a part of the UI, let the user decide and just skip all the objects that already have the modifier applied
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Thanks again!
Thansk for your time wordslayer. Am very happy :)
Thanks again!
thanks for your time Swordslayer!
.
Tools and Scripts for Autodesk 3dsMax
Thanks =)
Thansks Miauu you are crack!