|
6.
|
|
|
The python equivalent of an ATL transform is a Transform object.
|
|
|
|
Эквивалент ATL-трансформации на Python - объект Transform.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:29
|
|
7.
|
|
|
A transform applies operations such as cropping, rotation, scaling, and alpha-blending to its child. A transform object has fields corresponding to the :ref:`transform properties <transform-properties>`, which it applies to its child.
|
|
|
|
Трансформация применяет операции, такие, как кадрирование, вращение, масштабирование, установка прозрачности. Объект трансформации имеет поля, соответствующие :ref:`свойствам трансформации <transform-properties>`, которые она применяет к своим потомкам.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:33
|
|
8.
|
|
|
`child`
|
|
|
|
`child`
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
9.
|
|
|
The child the transform applies to.
|
|
|
|
Потомок, к которому применяется трансформация.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
10.
|
|
|
`function`
|
|
|
|
`function`
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:50
|
|
11.
|
|
|
If not none, this is a function that is called when the transform is rendered. The function is called with three arguments:
|
|
|
|
Если не None, эта функция вызывается при отображении трансформации. Эта функция вызывается с тремя аргументами:
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:42
|
|
12.
|
|
|
The transform object.
|
|
|
|
Объект трансформации
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:45
|
|
13.
|
|
|
The shown timebase, in seconds.
|
|
|
|
Время отображения в секундах.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:46
|
|
14.
|
|
|
The animation timebase, in seconds.
|
|
|
|
Время анимации в секундах.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:47
|
|
15.
|
|
|
The function should return a delay, in seconds, after which it will be called again, or None to never be called again.
|
|
|
|
Функция должна возвращать задержку (в секундах), после которой она будет вызвана снова, или None, чтобы отменить повторный вызов.
|
|
Translated and reviewed by
theadmin
|
|
|
|
Located in
../../source/trans_trans_python.rst:49
|