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

    SKM file format

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    7 Posts 4 Posters 843 Views 4 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.
    • AnssiA Offline
      Anssi
      last edited by

      Burkhardt once posted the RAL colour palette in a plain text SKM file format. Can someone explain the file structure to me? I have some colour palettes that I would like to convert to the SKM format, but I don't understand what the colour number in the SKM file means so I could convert my RGB, LAB or hexadecimal values.

      Anssi

      securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Where's this colour palette?
        Or could you post some sample data?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • AnssiA Offline
          Anssi
          last edited by

          This is the original thread

          301 Moved Permanently

          favicon

          (www.sketchucation.com)

          And this is how the file starts:

          3
          1
          RAL1000-Gruenbeige,0,8962508,0,0,0.500000,0
          RAL1001-Beige,0,8893646,0,0,0.500000,0
          RAL1002-Sandgelb,0,7582160,0,0,0.500000,0
          RAL1003-Signalgelb,0,44530,0,0,0.500000,0
          

          So the colour information is obviously stored in the big number after the second comma, but what does it mean?

          Anssi

          securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

          1 Reply Last reply Reply Quote 0
          • H Offline
            HPW
            last edited by

            @unknownuser said:

            So the colour information is obviously stored in the big number after the second comma

            Seems to me a RGB Integer where each Byte is a color (Red/Green/Blue).

            Error 404 (Not Found)!!1

            favicon

            (code.google.com)

            face.material = 255 # Here you may use the number
            face.material = 0xff
            face.material = "red"
            face.material = "#ff0000" # This shows it as a 32 Bit Hex

            1 Reply Last reply Reply Quote 0
            • AnssiA Offline
              Anssi
              last edited by

              So how would I convert a R,G,B value or a hexagesimal (web format) colour into a number understood by SU?

              Anssi

              securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                There was a post about this (or similar) a while (say a week) ago in one of the forums here and someone (maybe Jim? TIG?) posted some plugin (or scriplet) that did it from a text file or something. For my life I cannot find it but I'm sure it was not long ago (and not in the ruby dept.)

                Sigh... I generally move every ruby related stuff there (sometimes maybe over-tidying the place) but now no avail.

                Try searching, too. Sorry.

                Gai...

                1 Reply Last reply Reply Quote 0
                • H Offline
                  HPW
                  last edited by

                  Doesn't SU understand them all?

                  face.material = 255 # This is RGB integer here Blue
                  face.material = 16711680 # This is RGB integer here Red
                  face.material = 0xff # This is hex Blue
                  face.material = "red" # Red by name
                  face.material = "#ff0000" # This shows it as a 32 Bit Hex RED
                  face.material = "#0000ff" # This shows it as a 32 Bit Hex BLUE

                  Edit: Corrected color-names since the low Byte is Blue

                  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