Notifications
Clear all

[Closed] Mid-script interaction

Edit: well I’ve learned that this is impossible exactly as a i described it; I’ve been too long out of my UML class, but this should work with a rollout.

Ok here’s a noob question for anyone that could help. I’m not quite a beginner, but I’ve never written script to do any hybrid scripted/manual stuff before. I’ve got a script that prepares some files for rendering, and i want to allow some interaction with the scene; specifically, I want to be able to do a manual pan and a dolly (1 each), and at the release of that dolly i want the script to continue on its merry way to the saveMaxFile and continue the loop. If you need some more detailed description, lemme know and tia.


fn replaceChar str oChar rChar =
(
tStr = ""
for i=1 to str.count do
(
	 if str[i] == oChar then tStr += rChar
	 else tStr += str[i]
)
tStr
)
dir = getSavePath caption:"Render Queue Directory"
if dir == undefined doreturn false
files = getFiles ( (replaceChar (dir as string) "\\""\\\\") + "\\*.MAX" )
for f in files do
(
resetMaxFile #noPrompt
loadMaxFile f
temp = rendOutputFilename
rendOutputFilename = ("s:\\_webupdate\\1renderings\\" + (getFilenameFile f) + ".jpg")
renderHeight = 300
renderWidth = 525
rendRot = eulerAngles 0 0 180
setCoordCenter #local
rotate $Structure rendRot
move $camera01 [0,0,135]
saveMaxFile f 
)