Aply filter whith etree to a extension [solved]

Discussion about writing code for Inkscape.
xyzvisual
Posts: 11
Joined: Mon May 07, 2012 6:45 am

Aply filter whith etree to a extension [solved]

Postby xyzvisual » Sun Aug 05, 2012 4:34 am

I am finishing an extension that applies a filter to an item, both created with etree. The fact is that the filter is not applied until you manually move the object or reopen document.
The filter is:

Code: Select all

<filter
       y="0"
       x="0"
       width="1"
       height="1"
       color-interpolation-filters="sRGB"
       id="EraserFilter_0001">
      <feFlood
         flood-color="rgb(0,0,0)"
         flood-opacity="1"
         result="result1"
         id="feFloodEraserFilter_0001" />
      <feComposite
         k4="0"
         k3="0"
         k2="0"
         k1="3"
         in2="SourceGraphic"
         operator="arithmetic"
         result="result4"
         id="feCompositeEraserFilter_0001" />
    </filter>

Aplied to one element of a mask.
Thank you very much, translated by google.
Username not in use, now use jabiertxof
Jabier Arraiza Cenoz http://www.marker.es

xyzvisual
Posts: 11
Joined: Mon May 07, 2012 6:45 am

Re: Aply filter whith etree to a extension [solved]

Postby xyzvisual » Sun Aug 05, 2012 5:08 am

I bypass doing a transform move +1 and again move -1 and the filter is applied.
Soon the extension.
Username not in use, now use jabiertxof
Jabier Arraiza Cenoz http://www.marker.es

xyzvisual
Posts: 11
Joined: Mon May 07, 2012 6:45 am

Re: Aply filter whith etree to a extension [solved]

Postby xyzvisual » Sun Aug 05, 2012 9:31 am

This dont work because only coud aply 1 transform, and use rotate(360)
Username not in use, now use jabiertxof
Jabier Arraiza Cenoz http://www.marker.es


Return to “Programming”