Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

rs.OpenFileName file filter problem

$
0
0

Hi @Alain,

i’m not sure if this could be called a bug but rs.OpenFileName seems to allow me to select an *.url file instead of an *.svg file in below example code:

import rhinoscriptsyntax as rs

file = rs.OpenFileName("Open", "SVG Files (*.svg)|*.svg||")
print file

Could this be improved so it does only show the files having the extensions defined in the filter attribute ? Or is this maybe on purpose as the url could point to an svg file ?

thanks,
c.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4159

Latest Images

Trending Articles



Latest Images