View Full Version : Mid-script interaction

09 September 2005, 03:18 PM
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]
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

CGTalk Moderation
09 September 2005, 03:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.