Skip to main content
etienned38391262
Participant
April 3, 2015
Answered

is there a way to handle the save event ?

  • April 3, 2015
  • 1 reply
  • 709 views

Hi, Everybody.

i am a beginner and i have a problem.

I am developing an AEGP and I can not find how to handle the save event. I need this to generate a file when the user save the project.

Could you please help me ?

This topic has been closed for replies.
Correct answer shachar carmi

hi etienned38391262!

welcome to the forum!

funny. i was just discussing that with some guys at adobe yesterday.

you can use the command_hook to get save event, but it's not 100% bullet

proof. sometimes a save will happen and you won't get a call.

i can suggest the following trick:

implement an idle_hook on your AEGP. check if the project is dirty, and

save that flag. if on a following hook the project was made clean, it must

mean the user has saved the project.

:-D

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
April 3, 2015

hi etienned38391262!

welcome to the forum!

funny. i was just discussing that with some guys at adobe yesterday.

you can use the command_hook to get save event, but it's not 100% bullet

proof. sometimes a save will happen and you won't get a call.

i can suggest the following trick:

implement an idle_hook on your AEGP. check if the project is dirty, and

save that flag. if on a following hook the project was made clean, it must

mean the user has saved the project.

:-D

etienned38391262
Participant
April 3, 2015

Oh dude you saved my all day !

thank you very much, it work like a charm !

Community Expert
April 3, 2015

glad it helped!

(p.s, which of the two have you used?)