Ted Gould wrote:
On Wed, 2007-10-17 at 23:53 -0300, bulia byak wrote:
On 10/17/07, John Bintz <jcoswell@...1414...> wrote:
Hello. I'm trying to write an Effect extension that will allow the creation of cover templates for perfect bound books, which involves changing the document properties and adding guides lines to the current document. I have a Ruby script and an .inx file set up correctly, and when I examine the XML output from the script, the SVG that is returned is correct. When this file is written back to stdout at the end of the script, no changes occur within Inkscape.
And if you look into XML editor? are the changes there?
My guess is that things in namedview are simply not reread, because they are not SPObjects and therefore lack the automatic read-from-repr-on-change machinery that SPObjects have. Perhaps you just need to add a hook to recreate namedview object from repr after each effect runs.
We're calling 'sp_namedview_update_layers_from_document()' what else needs to be run?
IIRC There used to be a check in the code that explicitly skipped <defs /> and <namedview /> on document reload while using effects. A while back Ted or I removed the <defs /> portion of the clause and this allowed the color effects to work with gradients and altering the color of markers and other things in effects. But we left the <namedview /> check in there.
Aaron Spike