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
Thanks
Hi Anubis.
thanks for the link, and the script.
It's a similar thing to what i wanted. It was just the piece of script that copies an image string in to a map slot somewhere.
I have creted the rest of my script, wiring parameters and stuff together.
I will see if i can pich the part i need from your and implement it in to mine.
I'll let you know hw i get on. I would definitely prefer just tips and help. I never want my ideas to be written fully for me!
Bookmarked.
Cheers.
Script_Butler
I just can't do it!
How can i add in a line that copies image1.filename and image2.filename to the texmap: in a HDRI map in the material editor?
I've searched and just can 't figure it out! It's so annoying!
Cheers.
Script_Butler
VRay Reference
Ok, I find something useful for you, just bookmark this page:
http://vraydoc.narod.ru/vray150sp1/objects_maxscript.htm
Here is the VRayHDRI map properties:
So, obviously
HDRIMapName
is what you look for.Well, if I get the whole task, then this may help:
But after all, I can just encourage you to search more ;-)
my recent MAXScripts RSS (archive here)
I'm so certain i tried that and it didn't work.
I'll try this later again. I probably had a small typo or something.
Cheers.
Cheers.
Script_Butler
Next question!
In my script i have a button to get an image file from a local drive. Once this file is selected it pastes the path in to an edittext box.
Then i have the following code.
I then have a button that is pressed that creates two HDRI maps and I want these HDRI maps to load in the image that the user has selected in the above coding.
How can i get this path string to appear in a HDRI map that is created through this script?
I hope that makes sense.
Cheers.
Script_Butler
Perfect
Thanks again Anubis.
I tried all manner of things by looking at other scripts i have but just couldn't get it!
I'm sure i'll be posting more questions about this script soon, it's going to get complicated.
Cheers.
Cheers.
Script_Butler
here is...
if your map is already in the ME slot and want to rename it:
meditMaterials[1].name = "New Name"
you can name your materials and/or maps in the creation process as well, for example, next code will create standard material with name Foo and will add it to the second ME slot:
meditMaterials[2] = standard name:"Foo"
my recent MAXScripts RSS (archive here)
Further to this
Hi Anubis.
Further to this I've changed my script a bit!
I've got a button that when you click it, it enables the user to select an image file on their computer. The path string is then pasted in to a edittext underneath.
How can i get this path to be put in to the .texmap of a Vray dome light?
I have a create button with the intention of it creating a VRayDomeLight with this texture added in to it automatically.
I hope that makes sense.
Cheers.
Script_Butler
Hi again
Well, as i said, i not work with VRay.
Check this tool - VrayHDRITool
(or wait for some vr-user reply)
my recent MAXScripts RSS (archive here)
i not use vray
so cannot help with anything concrete.
you s'd find the name of the property of your vr-map.
for example, create your map in 1st ME slot and print it properties to the Listener with show() function:
show meditMaterials[1]
it will show their names and their type/value.
keep in mind that there may have and nested values, which should research too.
my recent MAXScripts RSS (archive here)