Inkscape.org
Beyond the Basics Scatter problems
  1. #1
    jimcubie jimcubie @jimcubie

    I am trying to scatter a series of bricks along a semi-circle.  I copied a brick from a photo in photoshop, saved it as a jpeg, brought it into inkscape and it scattered just like you want around he semi-circle.

    However, instead of gray mortar between the bricks, it was white.  When I cropped out all all but the red brick color in PS, and brought it into Inkscape to scatter it, it would not work. Got the "Must have two path objects.  So I traced it and that produced a brick with node handles.  But when I tried to scatter along the semi-circle I got this message.

    Traceback (most recent call last):

      File "pathscatter.py", line 295, in <module>

        e.affect()

      File "inkex.py", line 283, in affect

        self.effect()

      File "pathscatter.py", line 274, in effect

        mat=self.localTransformAt(s,self.options.follow)

      File "pathscatter.py", line 207, in localTransformAt

        i,t=self.lengthtotime(s)

      File "pathscatter.py", line 192, in lengthtotime

        l=l % sum(self.lengths)

    ZeroDivisionError: float modulo 

    I have run out of ideas.

    Sent For Help
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Removing duplicated nodes in the arc works here.

     

    TD