sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [REQ] CSV to Material

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 260 Views 2 Watching
    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.
    • deaneauD Offline
      deaneau
      last edited by

      Hello, exist a plugin that generate me Materials like Colors-Named with import via CSV?

      Material Name,Picker, R,G,B

      0001 PaleVioletRed,RGB,219,112,147 for the RGB Picker

      0001 PaleVioletRed,HSB,340,48,85 for the HSB Picker

      0001 PaleVioletRed,HLS,340,59,64 for the HLS Picker.

      thanks

      MADE, BORN AND LIVING IN BERLIN
      Big Thank You to all Programmers
      Some German words are so long that they have a perspective. M.Twain

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        There are many examples of plugins which read lines of data from a CSV file, or similar.
        See my LayersFromList.rb as an example - this makes a Layer [or finds it if it exists] and [re]sets its color using RGB values.
        With a Material it can be very similar - with the RGB, you can also add a final A value [float] between 0.0 and 1.0 to set transparency.
        If you add the extra option from the 'Picker' - RGB, HSB, HSL then you need to add in an extra test for that and reset the color accordingly...
        You could also add extra data for a Texture file path, size etc, allowing you to created a textured-material...

        TIG

        1 Reply Last reply Reply Quote 0
        • deaneauD Offline
          deaneau
          last edited by

          hi TIG, when i would be a programer, i would understand what you write.
          ruby code is for me like "double dutch" i don't understand what i see.

          thanks for your answer.

          Dean

          MADE, BORN AND LIVING IN BERLIN
          Big Thank You to all Programmers
          Some German words are so long that they have a perspective. M.Twain

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement