GseosSequencer.TSequencer
Previous  Top  Next

TSequencer(strName, fSequencer, [Args=()], [bStart=1])

Create a Sequencer instance and start the Sequencer.

ParameterDescription     
strNameA unique name for the Sequencer. This name will be used to identify the Sequencer in the control dialog.     
fSequencer The Sequencer function. It takes one or more arguments (depending if you supply arguments in the Args parameter). The first argument is an instance of the Sequencer itself. You will use this to invoke the Sequencer methods on this object. You have to provide an additional argument for every argument you pass in the Args tuple.      
oArgs Optional, any arguments you want to pass to your Sequencer function. This argument must be specified as a tuple, even if you only want to pass a single argument. Make sure you have matching parameters in your fSequencer function for every argument you list. The default is no arguments.     
bStart Optional, start flag. If you set this flag to false the Sequencer is not started until you explicitly call the Start() method. The default is true and therefore runs the Sequencer as soon as you create it.     
 
Returns
Instance of the Sequencer class. See the comments section.

Comments
As mentioned in the section above you usually dont have to hold on to a reference to the Sequencer object since the Explorer dialog will allow you to manage the Sequencer. However if you need to control the Sequencer from within a program you have to explicitly call Delete() if you want to get rid of the Sequencer (to delete the reference the control dialog holds).

Example
Create a Sequencer:

def fMySeq(oSeq):
  oSeq.MessageBox('Hello from your sequencer')
  oMySeq = GseosSequencer.TSequencer('MySeq', fMySeq)