.. module:: NatronEngine .. _StringParamBase: StringParamBase *************** **Inherits** :doc:`AnimatedParam` **Inherited by:** :doc:`PathParam`, :doc:`OutputFileParam`, :doc:`FileParam`, :doc:`StringParam` Synopsis -------- This is the base-class for all parameters holding a string. See :ref:`here` for more details. Functions ^^^^^^^^^ - def :meth:`get` () - def :meth:`get` (frame) - def :meth:`getDefaultValue` () - def :meth:`getValue` () - def :meth:`getValueAtTime` (time) - def :meth:`restoreDefaultValue` () - def :meth:`set` (x) - def :meth:`set` (x, frame) - def :meth:`setDefaultValue` (value) - def :meth:`setValue` (value) - def :meth:`setValueAtTime` (value, time) .. _stringBaseDetails: Detailed Description -------------------- A string parameter contains internally a string which can change over time. Much like keyframes for value parameters (like :doc:`IntParam` or :doc:`DoubleParam`) keyframes can be set on string params, though the interpolation will remain constant always. Member functions description ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. method:: NatronEngine.StringParamBase.get() :rtype: :class:`str` Get the value of the parameter at the current timeline's time .. method:: NatronEngine.StringParamBase.get(frame) :param frame: :class:`float` :rtype: :class:`str` Get the value of the parameter at the given *frame*. .. method:: NatronEngine.StringParamBase.getDefaultValue() :rtype: :class:`str` Get the default value for this parameter. .. method:: NatronEngine.StringParamBase.getValue() :rtype: :class:`str` Same as :func:`get()` .. method:: NatronEngine.StringParamBase.getValueAtTime(time) :param time: :class:`float` :rtype: :class:`str` Same as :func:`get(frame)` .. method:: NatronEngine.StringParamBase.restoreDefaultValue() Removes all animation and expression set on this parameter and set the value to be the default value. .. method:: NatronEngine.StringParamBase.set(x) :param x: :class:`str` Set the value of this parameter to be *x*. If this parameter is animated (see :func:`getIsAnimated(dimension)` then this function will automatically add a keyframe at the timeline's current time. .. method:: NatronEngine.StringParamBase.set(x, frame) :param x: :class:`str` :param frame: :class:`float` Set a new keyframe on the parameter with the value *x* at the given *frame*. .. method:: NatronEngine.StringParamBase.setDefaultValue(value) :param value: :class:`str` Set the default *value* for this parameter. .. method:: NatronEngine.StringParamBase.setValue(value) :param value: :class:`str` Same as :func:`set` .. method:: NatronEngine.StringParamBase.setValueAtTime(value, time) :param value: :class:`str` :param time: :class:`float` Same as :func:`set(time)