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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Author/credits API ?

    Scheduled Pinned Locked Moved Developers' Forum
    13 Posts 4 Posters 1.0k 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.
    • thomthomT Offline
      thomthom
      last edited by

      😲
      They protected the attribute??

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

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

        Are they saved as attributes ?
        The bold ones are relevant ?

        Sketchup.active_model.attribute_dictionaries.each{|dict|dict.each_pair{|k,v|puts dict.name+" = "+k+", "+v.to_s}}

        GeoReference = GeoReferenceNorthAngle, 359.856819594067
        GeoReference = Latitude, 49.2179779934131
        GeoReference = LocationSource, Google Earth
        GeoReference = Longitude, -122.810932099834
        GeoReference = ModelTranslationX, -20227104.4083539
        GeoReference = ModelTranslationY, -214634055.964147
        GeoReference = ModelTranslationZ, -39.3700760693234
        GeoReference = TimeStamp, 1277506001
        GeoReference = UsesGeoReferencing, true
        GeoReference = ZValueCentered, -39.3700760693234
        GSU_ContributorsInfo = LastModifiedByKey,
        GSU_ContributorsInfo = NicknamesKey, SnowTiger
        GSU_ContributorsInfo = UserIdsKey, 1379538105755232331646158
        GSU_ContributorsInfo = VersionKey, 1000

        temp = temp, 0
        TempShadowInfo = City, N/A
        TempShadowInfo = Country, N/A
        TempShadowInfo = Dark, 20
        TempShadowInfo = DaylightSavings, false
        TempShadowInfo = DisplayNorth, false
        TempShadowInfo = DisplayOnAllFaces, true
        TempShadowInfo = DisplayOnGroundPlane, true
        TempShadowInfo = DisplayShadows, false
        TempShadowInfo = EdgesCastShadows, false
        TempShadowInfo = Latitude, 49.2179779934131
        TempShadowInfo = Light, 80
        TempShadowInfo = Longitude, -122.810932099834
        TempShadowInfo = NorthAngle, 359.856819594067
        TempShadowInfo = TZOffset, -9.0
        TempShadowInfo = UseSunForAllShading, false
        3DWarehouse = ModelID, 51672e6c82c9025a6ec596733cc71eed
        2Dtools = z, 0"

        TIG

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

          @thomthom said:

          :shock:
          They protected the attribute??

          Looks like it ? πŸ˜•

          TIG

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            Dan: batch editing lots of files

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              Yes but it's not something I wish to post publically. (It involves the Google account login, and a person's proprietary claim on their work?)

              EDIT: .. well gee you guys just publish your IDs why dont ya?

              Why would you want to change these settings?

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @unknownuser said:

                Dan: batch editing lots of files

                Hmmm... if it is not yet set.. you should be able to set it. Enter a feature request?

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  <span class="syntaxdefault">attdicts</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">delete</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'GSU_ContributorsInfo'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxcomment">#<Sketchup;;AttributeDictionaries;0x5f39760><br /></span><span class="syntaxdefault">attdicts</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">count<br />0</span>
                  

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • tbdT Offline
                    tbd
                    last edited by

                    yeah. that removes the credits. but the idea is to add them πŸ˜‰ (still the same error as when trying to modify them)

                    so it is not possible in current version to add credits programmatically

                    SketchUp Ruby Consultant | Podium 1.x developer
                    http://plugins.ro

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by

                      I was thinking maybe you could create a dictionary with a temp name, delete the old one, then rename the new one, but ... I don't see a rename() or name= method for dictionaries.

                      I'm not here much anymore.

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

                        There is no 'name=' option for dictionaries - you have to clone the whole thing with a new name and delete the original.

                        The core-code magically prevents the specific dictionary name [GSU_ContributorsInfo] from being 'made' or edited by the standard users [although we have seen that 'deleting' it is possible - but I'd think that's probably an oversight by Google] - BUT of course it IS editable somehow... because Google can do it !

                        TIG

                        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