Pixero
12-12-2006, 08:24 AM
I found that I can "enhance" a Mentalray shader Max GUI declaration by using "fileopenButton" to browse for files
but I cant find any info on "fileopenButton" in the Max script help or the Max MR help.
Here is a working example (part) of a Max GUI for a MR shader:
control "colortree" "string" (
"uiName" "Shader path",
"fileopenButton" "DarkTree(*.dsts)|*.dsts|All(*.*)|*.*|"
)
And here is one from the Contour PS:
control "file_name" "string" (
"uiName" "Filename",
"filesaveButton" "Postscript(*.ps)|*.ps|All(*.*)|*.*|"
)
If "fileopenButton" isnt maxscript what is it? Windows ui declaration?
Are there any examples of how to create a dropdownlist in the same way?
Here is my unsuccessful try that gives an error:
control "space" "integer" (
"uiName" "Space:int,obj,world,cam,screen",
"dropdownlist" "items:#("int", "obj", "world", "cam", "screen")",
"value" 1,
"range" 0 4
)
Using MR shaders in Max would be so much easier if this could be solved so any help would be much appreciated.
but I cant find any info on "fileopenButton" in the Max script help or the Max MR help.
Here is a working example (part) of a Max GUI for a MR shader:
control "colortree" "string" (
"uiName" "Shader path",
"fileopenButton" "DarkTree(*.dsts)|*.dsts|All(*.*)|*.*|"
)
And here is one from the Contour PS:
control "file_name" "string" (
"uiName" "Filename",
"filesaveButton" "Postscript(*.ps)|*.ps|All(*.*)|*.*|"
)
If "fileopenButton" isnt maxscript what is it? Windows ui declaration?
Are there any examples of how to create a dropdownlist in the same way?
Here is my unsuccessful try that gives an error:
control "space" "integer" (
"uiName" "Space:int,obj,world,cam,screen",
"dropdownlist" "items:#("int", "obj", "world", "cam", "screen")",
"value" 1,
"range" 0 4
)
Using MR shaders in Max would be so much easier if this could be solved so any help would be much appreciated.
