- Thu Aug 30, 2007 11:06 pm
#241986
Yeah i thought that was a macro to simulate changes in light - is there a part of that macro that can be used to export mxi/mxs files for any animation set up in animator?
Maybe its just the last 2 parts...... plus part of the first?:
Sub GenerateMXSFrame(
nltAddin As swMaxwell2006.CswMaxwell2006,
dirName As String,
index As Long,
outputFile
)
Dim MyName As String
Dim myMXS As String
Dim myIMG As String
Dim res As Long
MyName = CStr(index)
myMXS = dirName + MyName + “.mxs”
myIMG = dirName + MyName + “.jpg”
res = nltAddin.ExportToMxs(myMXS, myIMG, False)
Call AddCommandToBatchRenderFile(dirName + MyName, outputFile)
End Sub
Sub AddCommandToBatchRenderFile(name, outputFile)
mxsfile = name + “.mxs”
imgfile = name + “.jpg”
CommandLine = “mxcl -mxs:” + mxsfile
CommandLine = CommandLine & “ -output:” & imgfile
CommandLine = CommandLine & “ -sampling:11”
CommandLine = CommandLine & “ -threads:4”
CommandLine = CommandLine & “ -nowait”
outputFile.WriteLine (CommandLine)
End Sub
?