Yes, you are right. By default, this flat is internally set to true for all custom commands.
In this case, invoke Cmd.SetFlag( 262144, false ) to make the command be "not undoable". Thanks, Joany -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Matt Lind Sent: Wednesday, September 04, 2013 1:30 AM To: [email protected] Subject: RE: undocumented flag for Command.SetFlag() Interesting. I thought all self installing commands were undoable. How is setting this flag different? Thanks, Matt -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Songqiong Yang Sent: Sunday, September 01, 2013 7:48 PM To: [email protected] Subject: RE: undocumented flag for Command.SetFlag() "262144" is an internal flag that is used to set as undoable. Thanks, Joany -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sebastian Kowalski Sent: Saturday, August 31, 2013 6:59 PM To: [email protected] Subject: Re: undocumented flag for Command.SetFlag() There is NO thing like weekend in the industry . . . Am 30.08.2013 um 21:42 schrieb Chris Chia <[email protected]>: > I will forward that to dev. It's already weekend for us. Will get back to you > asap. > > Regards, > Chris > > > On 31 Aug, 2013, at 2:38 AM, "Matt Lind" > <[email protected]<mailto:[email protected]>> wrote: > > Edit: > > C:\Program Files (x86)\Autodesk\Softimage 2013 > SP1\Application\Commands\GlobalVarPlugin.js > > > > From: > [email protected]<mailto:[email protected]> > [mailto:[email protected]] On Behalf Of Matt Lind > Sent: Friday, August 30, 2013 11:33 AM > To: [email protected]<mailto:[email protected]> > Subject: undocumented flag for Command.SetFlag() > > Can anybody with inside information explain this one? > > I am looking at GlobalVariable.js which is the plugin for the SetGlobal(), > SetGlobalObject(), and GetGlobal() commands. In the _Init() of each command > there is a line that looks like this: > > Cmd.SetFlag( 262144, false ); > > Normally you'd see Cmd.SetFlag( siNoLogging, true ), or something like that, > to define behavior of the command's execution environment. Upon looking in > the SDK docs for Command.SetFlag(), there is no combination of enums that > individually or bitwise combined that resolve to 262144 as shown above. So > what does this flag do? > > Thanks, > > > Matt > <winmail.dat>
<<attachment: winmail.dat>>

