Automated Material Script
If anyone out there feels ambitious, could you write up this material automated script.
It simply takes the selected objects Material and prints it into the Maxscript Listner allowing users to copy the code from there and paste it into scripts for further use.
What's being printed in the Maxscript Listner is the code which creates the material on the currently selected object.
Thoughts? I'd like to know if anyone is interested?
Comments
the function itself doesnt
the function itself doesnt create anything except a stringstream/characterstream wich is returned as a plain old string
so if you feed an arch design mat in youll get that out
Raphael Steves
was bored after all
if anyOne cares you can also format it out to a verbatim string or use directly (dunno why one would do the latter) but then you gotta lose the extra formating for string classes
to lazy to build in handling for arrays but if one needs it its simple to implement
after adding array handling textureMaps will be quite simple too
have phun
Raphael Steves
Looks good.
Works pretty well. It seems though everytime I run the script it create an Arch Design MXS.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
you can try this script
you can try this script although it doesnt print mat prop in listener
Hi John, Im not understand...
Hi John,
Im not understand... did you looking for script that convert the material to mxs-code? And then execute this code to recreate the same material with all its settings?
my recent MAXScripts RSS (archive here)
Correct,
That is exactly what I want Anubis. A script that coverts a material to mxs code. Then recreates the same material when executed.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Check BFF
Check BFF - Bobo's File Format (2006) by Borislav Petrov:
http://www.scriptspot.com/3ds-max/scripts/bff-bobos-file-format
First update (2007) by Raúl Ortega Palacios:
http://www.scriptspot.com/3ds-max/scripts/bff-2007
This must by 2nd update (2008) by lostinspace:
http://www.scriptspot.com/forums/3ds-max/general-scripting/bbf-script
(but I dont see download link here)
my recent MAXScripts RSS (archive here)