sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [SKM Bug]Material attributes within SKM files

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 6 Posters 1.9k Views 6 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.
    • GaieusG Offline
      Gaieus
      last edited by

      Tomasz,

      GG automatically locks topics that haven't been "active" (replied to) for 30 days. I have no idea why...

      Gai...

      1 Reply Last reply Reply Quote 0
      • KrisidiousK Offline
        Krisidious
        last edited by

        well we won't lock your topic... Promise! we'll even Bump it.

        By: Kristoff Rand
        Home DesignerUnique House Plans

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          Hmm, I thought I answered a similar post (from you?) many months ago. I experimented with assigning attributes to materials. If I remember, I was able to do it.

          And if I also remember, it didn't work for you?

          Hi

          1 Reply Last reply Reply Quote 0
          • T Offline
            tomasz
            last edited by

            Kristoff, thanks for bumping πŸ˜„

            Jim, it was Whaat who was looking for solution. Now I have tried as well to attach attribute dictionary to a material AND saving it to SKM file. As provided sample shew the attribute distionary "su2kt" was saved but the "kt_mat" key was empty.

            Tomasz

            Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

            1 Reply Last reply Reply Quote 0
            • W Offline
              Whaat
              last edited by

              Tomasz,

              Thanks for looking into this (although I know if this problem can be solved, it will benefit both of us πŸ˜‰ ). I have given up on this at the moment although if there is an easy solution, that would be great!
              Right now, material properties for SkIndigo can be saved as IGM files which can be loaded back into SketchUp fairly seamlessly. This file format also has the advantage that it can be imported by other programs like 3DSmax.

              I still don't understand how Jim can get the attributes to save but we can't. Hope you can help us with this one, Jim! Thanks!

              SketchUp Plugins for Professionals

              1 Reply Last reply Reply Quote 0
              • KrisidiousK Offline
                Krisidious
                last edited by

                theres Whaat... I knew he was around here somehwere.

                By: Kristoff Rand
                Home DesignerUnique House Plans

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gata
                  last edited by

                  At the moment, there's a 60 day thread posting period at GG forums. That annoyance is on a list of things to fix for the SU forum.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tomasz
                    last edited by

                    Gata, thanks for info.

                    I have done a test and simple attributes are being saved!
                    <n0:Attribute key="kt_mat" type="10">Test</n0:Attribute>

                      <mat;material colorBlue="0" colorGreen="0" colorRed="0" colorizeType="0" hasTexture="0" name="New" trans="0.5" type="0" useTrans="0" xmlns;n0="http://sketchup.google.com/schemas/1.0/types">
                        <n0;AttributeDictionaries count="1">
                          <n0;AttributeDictionary count="1" name="su2kt">
                            <n0;Attribute key="kt_mat" type="10">Test</n0;Attribute>
                          </n0;AttributeDictionary>
                        </n0;AttributeDictionaries>
                      </mat;material>
                    
                    

                    It looks we have to translate all unprintable characters into \nn form ( string.dump ).
                    I will let you know about success or failure πŸ˜„

                    Tomasz

                    Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                    1 Reply Last reply Reply Quote 0
                    • KrisidiousK Offline
                      Krisidious
                      last edited by

                      looking forward to knowing more...

                      By: Kristoff Rand
                      Home DesignerUnique House Plans

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tomasz
                        last edited by

                        Here are my findings in relation to attributes assigned to the SKM file:

                        • SU will not save an attribute containing an array or hash
                        • SU will save multiple keys within single attribute dictionary .. but will load only first! 😞

                        In attached sample there are three keys saved:

                        <n0:AttributeDictionary count="3" name="su2kt">
                        <n0:Attribute key="kt_lib_path" type="10">TEST1</n0:Attribute>
                        <n0:Attribute key="kt_map" type="10">KT MAP</n0:Attribute>
                        <n0:Attribute key="kt_mat" type="10">KT MAT</n0:Attribute>

                        but only first kt_lib_path will be loaded 😞
                        I am afraid only a fix from Google would help.

                        Tomasz

                        301 Moved Permanently

                        favicon

                        (www.sketchucation.com)

                        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                        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