sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Urasik Extensions | Lots of new extensions to check out Learn More

    [REQ] CSV to Material

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 330 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better đź’—

          Register Login
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement