as SVG is an XML language, you can use python's XML support to create and alter SVG documents. I've done this using Microsoft's XMLDOM object in ASP, but not in native python yet - I'm sure it's pretty straightforward. All you really need is a knowledge of the SVG schema.
 
A really handy tool for this is Jasc Softwares Webdraw SVG editor. I created an SVG 'image' of a square in Webdraw, took the source, and used the XMLDOM object to manipulate that source in order to change tag attributes ie make the square bigger, make it red, make it bounce up and down.
 
I could immediately see the need for a set of classes that are svg-specific though. is anybody working on a py_svg module?
 
--Jeff
-----Original Message-----
From: USER wilhelm.medetz [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 11:02 PM
To: [EMAIL PROTECTED]
Subject: ActivePython & SVG (Scalable Vector Graphics)

Is it possible to use ActivePython for

 

1)       scripting inside SVG files

2)       accessing the SVG DOM

 

Many thanks for any hints

 

W. Medetz

 

----------------------------------------------
Wilhelm Medetz
 
Simulation & Control

Hauptstr. 99, 4232 Hagenberg, Austria
 
Tel: +43 (7236) 21108
Fax: +43 (7236) 21130
Email: 
[EMAIL PROTECTED]
WWW: www.SimulationAndControl.com
 
ve softwarepark member
----------------------------------------------

 

 

Reply via email to