Home Coding, Scripting, Shaders

Save max file using Maxscript

Hi there
I have a script that exports fbx file automatically. Is it possible to do the same thing but save selected instead of exporting file?

Here's the script


for current in geometry do
(
    select current
    newFileName = current.name
    newFilePath = pathConfig.GetDir #Export
    completeFilePath = (newFilePath + "/" + newFileName)

    exportFile completeFilePath #noPrompt selectedOnly:true using:FBXEXP
    render renderType:#selected

    outputFilePath = (newFilePath + "/" + newFileName + ".png")
    render current frame:1 outputfile:outputFilePath 
)
Sign In or Register to comment.