<?xml version="1.0"?>
<page id="Gimp.context_set_dynamics"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>bool</api:type>
      </api:returns>
      <api:name>gimp_context_set_dynamics</api:name>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>name</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.context_set_dynamics</title>
  <synopsis><code mime="text/x-python">
@accepts(unicode)
@returns(bool)
def context_set_dynamics(name):
    # Python wrapper for gimp_context_set_dynamics()
  </code></synopsis>
  <p>Set the specified paint dynamics as the active paint dynamics.</p>  <p>This procedure allows the active paint dynamics to be set by
specifying its name. The name is simply a string which corresponds
to one of the names of the installed paint dynamics. If there is no
matching paint dynamics found, this procedure will return an error.
Otherwise, the specified paint dynamics becomes active and will be
used in all subsequent paint operations as long as dynamics are
enabled.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>name</code></title>
  <p>The name of the paint dynamics.</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
