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
|
|
|
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |
|
|
None
|
append(self,
element)
Add a new element inside this layer. |
|
|
AnimAttributes
|
getAttributes(self)
Gets the collection of attributes for this stroke. |
|
|
bool
|
getFlag(self,
flag)
Check whether a particular flag is set or not. |
|
|
AnimCTransform
|
getTransform(self)
Gets the transform for this shape. |
|
|
None
|
insert(self,
index,
element)
Insert a new element inside this layer at the given index. |
|
|
None
|
remove(self,
index)
Remove the element at the given index from this layer. |
|
|
None
|
removeAll(self)
Remove all elements from this layer. |
|
|
None
|
setFlag(self,
flag,
value)
Set a particular flag. |
|
|
None
|
setTransform(self,
transform)
Replace the existing transform for this shape with a new one. |
|
|
Inherited from Element :
clone ,
getVisible ,
serialise ,
setVisible
Inherited from object :
__format__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|