Trees | Indices | Help |
|
---|
|
object --+ | Element --+ | Layer
A layer, used to group other elements in the paint tree.
Layers can contain shapes, strokes and other layers. They can be transformed, which has the effect of transforming all contained objects by the same amount (in addition to any individual transforms on the contained objects).
Layers are represented as a sequence of Element objects. You can find out how many items the layer contains using the len() function, as for any python sequence. Likewise you can access the contained elements using python's array-style syntax (e.g. layer[0] will return the first element inside the layer, layer[-1] will return the last element, etc.).
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
None |
|
||
AnimAttributes |
|
||
bool |
|
||
AnimCTransform |
|
||
None |
|
||
None |
|
||
None |
|
||
None |
|
||
None |
|
||
Inherited from Inherited from |
|
|||
|
x.__delattr__('name') <==> del x.name
|
x.__getattribute__('name') <==> x.name
|
|
x.__setattr__('name', value) <==> x.name = value
|
Add a new element inside this layer. The element must be an instance of either the Shape, Stroke or Layer classes. Note that an element cannot be in more than one place in the tree, so if you try to add an element that is already in the tree somewhere else, it'll be removed from its old location first.
|
Check whether a particular flag is set or not. The flag parameter should be one of the constants from the FlagType class. The return value will be True if the flag is set, False if it isn't.
|
Insert a new element inside this layer at the given index. The element must be an instance of either the Shape, Stroke or Layer classes. Note that an element cannot be in more than one place in the tree, so if you try to add an element that is already in the tree somewhere else, it'll be removed from its old location first.
|
Remove the element at the given index from this layer. If the index is out of bounds, an IndexError will be raised.
|
Set a particular flag. The flag parameter specifies which flag to set and should be one of the constants from the FlagType class. The value parameter is a boolean value; True will set the flag, False will clear it.
|
Replace the existing transform for this shape with a new one. The transform parameter must be an instance of the AnimTransform class.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 5 06:16:24 2017 | http://epydoc.sourceforge.net |