SequenceBlock Class

From Derivative
Jump to navigation Jump to search

The SequenceBlock class can be used to access the parGroups of a specific block (set of parGroups) in a sequence.

block = op('/add1').seq.point[3] # get the fourth block from the sequence named "iop"
print([parGroup for parGroup in block]) # print all the parGroups in the block

Note: use the parameter name without the sequence prefix.


Members

indexint (Read Only):

The numeric index of the block.

ownerOP (Read Only):

The OP to which this object belongs.

parParCollection (Read Only):

An intermediate parameter collection object, from which a specific sequence parameter can be found.

Names do not include sequence info prefix.

n.seq.Info.blocks[2].par.Tx # raises exception if not found
n.seq.Info.blocks[2].parGroup['Tx'] #returns None if not found

parGroupParGroupCollection (Read Only):

An intermediate parameter collection object, from which a specific sequence parameter group can be found.

Names do not include sequence info prefix.

n.seq.Info.blocks[2].par.T # raises exception if not found
n.seq.Info.blocks[2].parGroup['T'] #returns None if not found

sequenceSequence (Read Only):

The sequence object this block belongs to.

Methods

No operator specific methods.

TouchDesigner Build: