I have an issue with the Scatter extension. I am basically trying to make a spiky ball, so I make a circle and a triangle. I want to use scatter to make the spiky ball, but I end up with this.
Traceback (most recent call last): File "pathscatter.py", line 165, in <module> PathScatter().run() File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 131, in run self.save_raw(self.effect()) File "pathscatter.py", line 125, in effect self._do_transform(skeletons, width, pattern_list, g_node) File "pathscatter.py", line 161, in _do_transform s += dx UnboundLocalError: local variable 'dx' referenced before assignment
Here are the hardware specs.
Summary Operating System Windows 10 Pro 64-bit CPU AMD Ryzen 5 3600 46 °C Matisse 7nm Technology RAM 32,0GB Dual-Channel Unknown @ 1732MHz (16-18-18-36) Motherboard Micro-Star International Co. Ltd. X470 GAMING PLUS (MS-7B79) (AM4) 30 °C Graphics 24G1WG4 (1920x1080@144Hz) 24G1WG4 (1920x1080@144Hz) 2047MB NVIDIA GeForce GTX 1060 6GB (MSI) 32 °C Storage 931GB Crucial CT1000MX500SSD4 (SATA (SSD)) 1863GB Seagate ST2000DM001-1CH164 (SATA ) 24 °C 1863GB Seagate ST2000DM001-1CH164 (SATA ) 24 °C 232GB Crucial_CT250MX200SSD1 (SATA (SSD)) 27 °C 465GB Samsung SSD 970 EVO Plus 500GB (Unknown (SSD)) 1863GB Seagate BUP Slim SL SCSI Disk Device (USB (SATA) ) 25 °C Optical Drives DiscSoft Virtual SCSI CdRom Device DiscSoft Virtual SCSI CdRom Device ATAPI iHAS124 D Audio ASUS Xonar DX Audio Device
I am running Windows 10 x64 Pro 21H1 ver. 19043.1110. As for extra devices, I have a Gaomon S620 Tablet.
I use official installation packages from inkscape.org - my version of Inkscape is Inkscape 1.1 (c68e22c387, 2021-05-23).
Just wanted to say I'm getting that same python unbound local variable 'dx' issue when following these steps with the latest Inkscape (v1.1) on Win 10 when I have the Follow Path Orientation box checked.
Disabling that feature by unchecking the box allows me to use the tool as normal.
As an aside I wish this tool allowed a random position offset per object scattered, you know to actually scatter the pattern/path/object instead of basically doing almost the same thing as Pattern Along Path with Repeat.
I have an issue with the Scatter extension. I am basically trying to make a spiky ball, so I make a circle and a triangle. I want to use scatter to make the spiky ball, but I end up with this.
Traceback (most recent call last):
File "pathscatter.py", line 165, in <module>
PathScatter().run()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 131, in run
self.save_raw(self.effect())
File "pathscatter.py", line 125, in effect
self._do_transform(skeletons, width, pattern_list, g_node)
File "pathscatter.py", line 161, in _do_transform
s += dx
UnboundLocalError: local variable 'dx' referenced before assignment
Here are the hardware specs.
Summary
Operating System
Windows 10 Pro 64-bit
CPU
AMD Ryzen 5 3600 46 °C
Matisse 7nm Technology
RAM
32,0GB Dual-Channel Unknown @ 1732MHz (16-18-18-36)
Motherboard
Micro-Star International Co. Ltd. X470 GAMING PLUS (MS-7B79) (AM4) 30 °C
Graphics
24G1WG4 (1920x1080@144Hz)
24G1WG4 (1920x1080@144Hz)
2047MB NVIDIA GeForce GTX 1060 6GB (MSI) 32 °C
Storage
931GB Crucial CT1000MX500SSD4 (SATA (SSD))
1863GB Seagate ST2000DM001-1CH164 (SATA ) 24 °C
1863GB Seagate ST2000DM001-1CH164 (SATA ) 24 °C
232GB Crucial_CT250MX200SSD1 (SATA (SSD)) 27 °C
465GB Samsung SSD 970 EVO Plus 500GB (Unknown (SSD))
1863GB Seagate BUP Slim SL SCSI Disk Device (USB (SATA) ) 25 °C
Optical Drives
DiscSoft Virtual SCSI CdRom Device
DiscSoft Virtual SCSI CdRom Device
ATAPI iHAS124 D
Audio
ASUS Xonar DX Audio Device
I am running Windows 10 x64 Pro 21H1 ver. 19043.1110. As for extra devices, I have a Gaomon S620 Tablet.
I use official installation packages from inkscape.org - my version of Inkscape is Inkscape 1.1 (c68e22c387, 2021-05-23).
Is the triangle above the circle as described in its help tab?
Yes, it is.
Can´t help as it works here:
Just in case; can you try my example file which works here?
Ok something is definitely off...
Just wanted to say I'm getting that same python unbound local variable 'dx' issue when following these steps with the latest Inkscape (v1.1) on Win 10 when I have the Follow Path Orientation box checked.
Disabling that feature by unchecking the box allows me to use the tool as normal.
As an aside I wish this tool allowed a random position offset per object scattered, you know to actually scatter the pattern/path/object instead of basically doing almost the same thing as Pattern Along Path with Repeat.
@Igolugo Please report bugs with Inkscape at https://inkscape.org/report .
I tried the latest development build and it seems to work fine there. I guess the bug has been taken care of after the release of Inkscape 1.1