You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file being read, "Demo_2_colors.svg" has two different stroke colors. After using splitdist to insert a dip svg, the first layer has it's color overwritten, and shows as black (#000000), while the second layer's color is intact. Based on the printed color and proplist info, this overwriting seems to occur at the conclusion of the first forlayer block.
The file being read, "Demo_2_colors.svg" has two different stroke colors. After using splitdist to insert a dip svg, the first layer has it's color overwritten, and shows as black (#000000), while the second layer's color is intact. Based on the printed color and proplist info, this overwriting seems to occur at the conclusion of the first forlayer block.
vpype \ eval "dip_files=[r'Dip_locations\Circles\Dip_1.svg', r'Dip_locations\Circles\Dip_2.svg']" \ read -a stroke "Demo_2_colors.svg" \ forlayer \ eval "%print('start', _color)%" \ lmove %_lid% 1 \ splitdist 50cm \ eval "j=_i" \ forlayer \ lmove %_lid% "%_lid*2%" \ read -l "%_lid*2-1%" %dip_files[j]% \ end \ lmove all %_lid% \ eval "%print('end', _color)%" \ end \ proplist \ write "Demo_2_colors_PAINT.svg"
The output of the print statements above:
start #67d8fa
end #67d8fa
start #27ff71
end #27ff71
WARNING:root:neither --global nor --layer options were provide, assuming --layer all
listing 8 properties for layer 1
svg_fill: (str) #FFFFFF
svg_stroke: (str) #000000
svg_stroke-dasharray: (str)
svg_stroke-linecap: (str) square
svg_stroke-miterlimit: (str) 10
vp_color: (color) #000000
vp_pen_width: (float) 1.0
vp_source: (WindowsPath) C:\Users\lewi0\Desktop\lewi0622.github.io\Vpype_Stuff\Dip_locations\Circles\Dip_1.svg
listing 8 properties for layer 2
svg_fill: (str) #FFFFFF
svg_stroke: (str) rgb(39,255,113)
svg_stroke-dasharray: (str)
svg_stroke-linecap: (str) round
svg_stroke-miterlimit: (str) 10
svg_stroke-opacity: (str) 1
vp_color: (color) #27ff71
vp_pen_width: (float) 1.0
The text was updated successfully, but these errors were encountered: