Toggle navigation
Polycount
News
Forums
Patreon
Challenges
Quarterly Character Art Challenge
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Sign In
·
Register
Author:
IsadistI
Home
›
Technical Talk
(MaxScript) Execute function on file save
barbeaulex
polycounter lvl 5
Offline /
Send Message
barbeaulex
polycounter lvl 5
Mar 2014
Hey everyone!
I have a real simple question that I can't seem to find the answer to. I have a script that writes some info to a .txt file. However, I would like it to write to the .txt file only when the user saves the .max file.
Any ideas?
0
·
Share on Facebook
Share on Twitter
Replies
Offline /
Send Message
Noors
greentooth
Mar 2014
You have to use a callback to execute a script when "something happens"
See "General Event Callback Mechanism" in maxscript help
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
haiddasalami
polycounter lvl 14
Mar 2014
You're looking for
callbacks
. Theres different events you can hook into such as
#filePreSave
or
#filePostSave
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
barbeaulex
polycounter lvl 5
Mar 2014
Wow, you guys are fast! Thanks a lot!
0
·
Share on Facebook
Share on Twitter
Sign In
or
Register
to comment.
Replies
See "General Event Callback Mechanism" in maxscript help