Lines Matching defs:inkex
26 # We will use the inkex module with the predefined Effect base class.
27 import inkex
28 inkex.localize()
30 class JessyInk_Effects(inkex.Effect):
33 inkex.Effect.__init__(self)
43 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink"
47 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
50 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n"))
53 inkex.errormsg(_("No object selected. Please select the object you want to assign an effect to and then press apply.\n"))
57 node.set("{" + inkex.NSS["jessyink"] + "}effectIn","name:" + self.options.effectIn + ";order:" + self.options.effectInOrder + ";length:" + str(int(self.options.effectInDuration * 1000)))
59 if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}view"):
60 del node.attrib["{" + inkex.NSS["jessyink"] + "}view"]
62 if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectIn"):
63 del node.attrib["{" + inkex.NSS["jessyink"] + "}effectIn"]
66 node.set("{" + inkex.NSS["jessyink"] + "}effectOut","name:" + self.options.effectOut + ";order:" + self.options.effectOutOrder + ";length:" + str(int(self.options.effectOutDuration * 1000)))
68 if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}view"):
69 del node.attrib["{" + inkex.NSS["jessyink"] + "}view"]
71 if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectOut"):
72 del node.attrib["{" + inkex.NSS["jessyink"] + "}effectOut"]