oliverthered

for id, node in self.selected.items()

Nov 11th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. Use `self.svg.selected`.
  2. for id, node in self.selected.items():
  3. paths:[<Element {http://www.w3.org/2000/svg}path at 0x37165180>, <Element {http://www.w3.org/2000/svg}path at 0x371650e0>]
  4. parsedSVGCommands = m 139.09524,31.75 c -38.89694,-1.852235 -19.9356,-2.528515 -88.446431,18.142857 -5.394341,1.627603 -11.59918,3.159688 -15.119049,7.559524 -1.888958,2.361197 6.25021,1.088184 9.07143,0 15.040991,-5.801527 29.542348,-12.973211 43.845236,-20.410715 4.652079,-2.41908 8.656431,-5.925359 12.851194,-9.071427 0.85526,-0.641448 2.81789,-3.184585 2.26785,-2.267858 -2.04986,3.416438 -4.976234,6.286921 -6.803565,9.827379 -2.70949,5.249635 -5.870562,13.879642 -6.803573,20.410715 -0.178181,1.247259 0,2.519841 0,3.779763 0,0.251984 -0.251698,0.767938 0,0.755952 15.191238,-0.723392 28.788278,-1.550498 39.309528,-16.630951 8.68685,-12.451167 -7.21372,-27.781463 -17.38691,-30.994049 -9.37755,-2.9613326 -9.07143,0.295408 -9.07143,7.559524 0,4.787698 -1.07264,9.697102 0,14.363095 7.96344,34.640943 3.25083,46.782783 27.21429,60.47619 10.18937,5.822501 1.17675,-0.755952 4.53571,-0.755952 1.96806,0 -3.14408,2.388135 -4.53571,3.779761 -0.76888,0.768884 -2.25493,4.522782 -3.02381,5.291662 -0.17818,0.17819 -0.8856,0.21608 -0.75595,0 0.83013,-1.38355 2.01587,-2.51984 3.02381,-3.779756
  5. shapereco.py:1892: DeprecationWarning: simplepath.parsePath -> element.path.to_arrays()
  6. strPath = simplepath.parsePath(str(parsedSVGCommands))
  7. strPath = [['M', [139.09524, 31.75]], ['C', [100.19829999999999, 29.897765, 119.15964, 29.221485, 50.648808999999986, 49.892857]], ['C', [45.25446799999999, 51.52046, 39.04962899999998, 53.052545, 35.52975999999998, 57.452381]], ['C', [33.64080199999998, 59.813578, 41.779969999999985, 58.540565, 44.60118999999998, 57.452381]], ['C', [59.64218099999998, 51.650854, 74.14353799999998, 44.47917, 88.44642599999997, 37.041666000000006]], ['C', [93.09850499999997, 34.622586000000005, 97.10285699999997, 31.116307000000006, 101.29761999999997, 27.970239000000007]], ['C', [102.15287999999997, 27.328791000000006, 104.11550999999997, 24.785654000000008, 103.56546999999996, 25.702381000000006]], ['C', [101.51560999999997, 29.118819000000006, 98.58923599999996, 31.989302000000006, 96.76190499999996, 35.52976000000001]], ['C', [94.05241499999995, 40.77939500000001, 90.89134299999995, 49.409402000000014, 89.95833199999996, 55.940475000000006]], ['C', [89.78015099999996, 57.187734000000006, 89.95833199999996, 58.460316000000006, 89.95833199999996, 59.72023800000001]], ['C', [89.95833199999996, 59.97222200000001, 89.70663399999995, 60.48817600000001, 89.95833199999996, 60.47619000000001]], ['C', [105.14956999999995, 59.75279800000001, 118.74660999999995, 58.92569200000001, 129.26785999999996, 43.84523900000001]], ['C', [137.95470999999995, 31.39407200000001, 122.05413999999996, 16.063776000000008, 111.88094999999996, 12.851190000000006]], ['C', [102.50339999999996, 9.889857400000006, 102.80951999999996, 13.146598000000006, 102.80951999999996, 20.410714000000006]], ['C', [102.80951999999996, 25.198412000000005, 101.73687999999996, 30.107816000000007, 102.80951999999996, 34.77380900000001]], ['C', [110.77295999999997, 69.41475200000001, 106.06034999999996, 81.55659200000001, 130.02380999999997, 95.249999]], ['C', [140.21317999999997, 101.0725, 131.20055999999997, 94.49404700000001, 134.55951999999996, 94.49404700000001]], ['C', [136.52757999999997, 94.49404700000001, 131.41543999999996, 96.88218200000001, 130.02380999999997, 98.273808]], ['C', [129.25492999999997, 99.042692, 127.76887999999997, 102.79659000000001, 126.99999999999997, 103.56547]], ['C', [126.82181999999997, 103.74366, 126.11439999999997, 103.78155000000001, 126.24404999999997, 103.56547]], ['C', [127.07417999999997, 102.18192, 128.25991999999997, 101.04563, 129.26785999999998, 99.785714]]]
Advertisement
Add Comment
Please, Sign In to add comment