Re: Executing a Command without undo (Scripting)

2017-01-14 Thread Martin
>> There's a 3rd method to invoke a command from inside of a plugin, but I'd >> have to exhume a lot of old code to remember what that was. Just be aware >> it exists. >> >> >> Matt >> >> >> >> Date: Fri, 13 Jan 2017 20:55:57 +0900 >>

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Steven Caron
of a plugin, but I'd have to exhume a lot of old code to remember what that was. Just be aware it exists. Matt Date: Fri, 13 Jan 2017 20:55:57 +0900 From: Martin <furik...@gmail.com> Subject: Re: Executing a Command without undo (Scripting) To: "Official Softimage Users Mailing Li

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Martin
voke a command from inside of a plugin, but I'd > have to exhume a lot of old code to remember what that was. Just be aware > it exists. > > > Matt > > > > Date: Fri, 13 Jan 2017 20:55:57 +0900 > From: Martin <furik...@gmail.com> > Subject: Re: Executin

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Matt Lind
to exhume a lot of old code to remember what that was. Just be aware it exists. Matt Date: Fri, 13 Jan 2017 20:55:57 +0900 From: Martin <furik...@gmail.com> Subject: Re: Executing a Command without undo (Scripting) To: "Official Softimage Users Mailing List. Thanks fo

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Martin
, very wrong with your plan. > > Matt > > > > > Date: Thu, 12 Jan 2017 17:44:52 +0900 > From: Martin Yara <furik...@gmail.com> > Subject: Executing a Command without undo (Scripting) > To: "softimage@listproc.autodesk.com" > > Hi, >

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Matt Lind
ing is very, very wrong with your plan. Matt Date: Thu, 12 Jan 2017 17:44:52 +0900 From: Martin Yara <furik...@gmail.com> Subject: Executing a Command without undo (Scripting) To: "softimage@listproc.autodesk.com" Hi, Is it possible, in Scripting, to execute a command with

Re: Executing a Command without undo (Scripting)

2017-01-13 Thread Martin Yara
I can't find a solution to this but I finally understood 2 things: The Cmd.SetFlag(262144,false) makes the command undoable, but if this command is using other commands inside, they will be undoable. This Flag don't affect at all Repeat last command. Is there anyway to manipulate, or manually

Re: Executing a Command without undo (Scripting)

2017-01-12 Thread Martin Yara
Thanks for your answer. I tried that but it resets all the Undo History so both a() and b() won't be undoable. And worst, b() is still in the Repeat list. I want to keep a() undoable and repeatable while making b() invisible. It seems to work fine when b() is called by an event, undo and repeat

Re: Executing a Command without undo (Scripting)

2017-01-12 Thread Alok Gandhi
You can set preferences.General.undo': 0 before calling b(). In python this can be easily done through a decorator On Thu, Jan 12, 2017 at 6:20 PM, Martin Yara wrote: > I've found SetFlag(262144, false) in an old

Re: Executing a Command without undo (Scripting)

2017-01-12 Thread Martin Yara
I've found SetFlag(262144, false) in an old message in the list but I don't understand how does it work. I create a command a() with these flags in JScript. oCmd.SetFlag(siNoLogging,true); oCmd.SetFlag(siSupportsKeyAssignment,false) ; oCmd.SetFlag(262144,false); Just like the commands inside

Executing a Command without undo (Scripting)

2017-01-12 Thread Martin Yara
Hi, Is it possible, in Scripting, to execute a command without leaving a trace in the undo stack? I want to execute 2 commands a() and b() in that order, but I want to be able to use Repeat to use a() again, not b(). b() command is only a command to get data so it shouldn't break anything if I