.. module:: NatronEngine .. _Double2DParam: Double2DParam ************* **Inherits** :doc:`DoubleParam` **Inherited by:** :ref:`Double3DParam` Synopsis -------- See :doc:`DoubleParam` for more information on this class. Functions ^^^^^^^^^ - def :meth:`setUsePointInteract` () - def :meth:`get` (frame) - def :meth:`set` (x, y) - def :meth:`set` (x, y, frame) Member functions description ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. method:: NatronEngine.Double2DParam.setUsePointInteract(enabled) :param enabled: :class:`bool` When called, the parameter will have its own overlay interact on the viewer as a point that the user can select and drag. .. figure:: ../../positionInteract.png :width: 400px :align: center .. method:: NatronEngine.Double2DParam.setCanAutoFoldDimensions(enabled) :param enabled: :class:`bool` Sets whether all dimensions should be presented as a single value/slider whenever they are equal. .. method:: NatronEngine.Double2DParam.get() :rtype: :class:`Double2DTuple` Returns a :doc:`Double2DTuple` with the [x,y] values for this parameter at the current timeline's time. .. method:: NatronEngine.Double2DParam.get(frame) :param frame: :class:`float` :rtype: :class:`Double2DTuple` Returns a :doc:`Double2DTuple` with the [x,y] values for this parameter at the given *frame*. .. method:: NatronEngine.Double2DParam.set(x, y, frame) :param x: :class:`float` :param y: :class:`float` :param frame: :class:`float` Same as :func:`set(x,frame)` but for 2-dimensional doubles. .. method:: NatronEngine.Double2DParam.set(x, y) :param x: :class:`float` :param y: :class:`float` Same as :func:`set(x)` but for 2-dimensional doubles.