MAXScript and State Sets
I need some help in working with MAXScript State Sets.
I have read page http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=fil.... But I could not find the answers to two questions.
1. How to find out the name of the State Set which the script is executed?
2. How to programmatically create a State Set the template?
I need to write a generic script that will change the names of files in the external render, depending on the names of State Set, which give a command to render.
For example this:
vr = renderers.current
sName = stateSet.Name
FullPathRAW = "D:/_"+ sName + ".exr"
FullPathCNL = "D:/_"+ sName + ".tif"
vr.output_rawFileName = FullPathRAW
vr.output_splitfilename = FullPathCNL
/* render outputwidth:640 outputheight:480 outputfile:("D:/test.png") vfb:on */