AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 18, 2013 11:43 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: undo
PostPosted: Mon Jan 17, 2005 4:16 am 
Offline

Joined: Mon Dec 20, 2004 10:48 am
Posts: 17
Location: London, UK
Does anyone know how to perform an "undo" from within a script?

Miki


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 17, 2005 7:33 am 
Offline

Joined: Wed Jul 07, 2004 2:30 pm
Posts: 319
Location: Charlotte, NC
When saying undo, do you mean you want to be able to undo your script?
If so, just put these lines and the beginning and end of your script.

app.beginUndoGroup("Your undo text here");
//put your script in between here
app.endUndoGroup();

_________________
Byron Nash
CG/VFX Generalist
http://www.editatjoes.com
http://www.armoredsquirrel.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 17, 2005 9:42 am 
Offline

Joined: Mon Dec 20, 2004 10:48 am
Posts: 17
Location: London, UK
No, I mean I actually want to do the undo from within my script!

I want to make a GUI which includes its own "undo" button.
Any ideas?


Last edited by miki on Mon Jan 17, 2005 10:26 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 17, 2005 9:46 am 
Offline

Joined: Wed Jul 07, 2004 2:30 pm
Posts: 319
Location: Charlotte, NC
Sorry, nothing comes to mind on that. You are wanting to undo a normal AE action that was done before the script was launched? I'll let you know if I run across anything. This would be a good application for a scriptlistener like Photoshop has.

_________________
Byron Nash
CG/VFX Generalist
http://www.editatjoes.com
http://www.armoredsquirrel.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 22, 2005 11:29 am 
Offline

Joined: Sat Jun 12, 2004 6:40 pm
Posts: 57
Just a thought but you could parse the bits you wish to effect and save those as vars for a "return to default" type button.

You can take a look at the calculator script I created. Perhaps the memory add/return/clear bits will help you get some sort of internal undo buffer for your script


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group