JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    V2 Feedback : require selection from parameter

    Development Discussions
    2
    3
    290
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gilboonet
      gilboonet last edited by gilboonet

      I have a script that makes a volume from two svg files that are chosen from text parameters. Then a require is made from those parameters. Won't it be possible to have a list parameter that can be feeded from file names (naturally from project folder) filtered by a mask (like *.svg or profil??.svg ) ?
      Capture d’écran de 2020-10-13 21-57-40.png

      z3dev 1 Reply Last reply Reply Quote 0
      • gilboonet
        gilboonet @z3dev last edited by gilboonet

        @z3dev I could easily adapt to any solution allowing to feed a list parameter with files, it will be far a better UI practice than my current one that requires the user to type the file name. Or maybe the ability for a text parameter to receive a file from a drag-drop operation.

        1 Reply Last reply Reply Quote 0
        • z3dev
          z3dev @gilboonet last edited by

          @gilboonet nice idea.

          of course, design parameters are defined by getParameterDefinitions(), but internally this function can call other functions, do calculations, etc. i would expect that loading JSON files should be easy.

          if you want access to a list of files in a subfolder... hold on... there's are some changes in progress. 🤓

          gilboonet 1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors