PDA

View Full Version : Script Help


masterpie
04-12-2006, 06:15 PM
Hey, i was wandering, what would i have to put in a maxscript to make it save all the text that it just made i the script listener? or if that cant be done, what would i have to put in to make it save the contents of the script listener. thankyou in advance.

erilaz
04-13-2006, 02:13 AM
Have a look at the openLog command. That should give you what you need. Just remember to use closeLog() later!

Just a quick pointer: If you have more questions in future, could you make the thread title a little more informative about your problem? "Script help" is a little vague. ;) If you have the topic of your problem summarised in the thread title, it means we can skim through the forum quickly and see if we're able to help anyone. Thanks. :D

masterpie
04-13-2006, 01:56 PM
ok, thanks, and soorry about the thread title thing, so, say i have a button do something, and i want to save all the text it just made, i would put something like this?

on saveButton pressed do
(
clearListener()
openlog()
*all the stuff i want it to do here*
closelog()
--would i then have to put something like this?
filename = getSaveFileName "Save OBJ" types:"Wavefront OBJ (*.obj)|*.obj"

if filename != undefined then (
fp = saveFile filename
)
thanks in advance :)

CGTalk Moderation
04-13-2006, 01:56 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.