Lines Matching refs:inkex

26 # We will use the inkex module with the predefined Effect base class.
27 import inkex
29 inkex.localize()
50 class JessyInk_Effects(inkex.Effect):
53 inkex.Effect.__init__(self)
60 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink"
64 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
67 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"))
75 inkex.errormsg(_("More than one object selected. Please select only one object.\n"))
79 inkex.errormsg(_("No object selected. Please select the object you want to assign a view to and then press apply.\n"))
84 for node in rect.xpath("ancestor::svg:g[@inkscape:groupmode='layer']/descendant::*[@jessyink:view]", namespaces=inkex.NSS):
85 propDict = propListToDict(propStrToList(node.attrib["{" + inkex.NSS["jessyink"] + "}view"]))
88 del node.attrib["{" + inkex.NSS["jessyink"] + "}view"]
91 rect.set("{" + inkex.NSS["jessyink"] + "}view","name:view;order:" + self.options.viewOrder + ";length:" + str(int(self.options.viewDuration * 1000)))
94 if rect.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectIn"):
95 del rect.attrib["{" + inkex.NSS["jessyink"] + "}effectIn"]
97 if rect.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectOut"):
98 del rect.attrib["{" + inkex.NSS["jessyink"] + "}effectOut"]
100 if node.attrib.has_key("{" + inkex.NSS["jessyink"] + "}view"):
101 del node.attrib["{" + inkex.NSS["jessyink"] + "}view"]