sketchucation logo sketchucation
    • 登入
    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

    SketchUp RUBY API Wishlist [way of coding wishes, please]

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    107 貼文 46 Posters 43.0k 瀏覽 46 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • jolranJ 離線
      jolran
      最後由 編輯

      +1

      But also ability to remove polygons. If I'm not misstaken one can only add polygons(?).
      (This was under discussion before)

      It would be convienient to use polygonmesh as container at an early stage. Rather as a last step before becoming Sketchup geometry..

      Transforms are ~3 times faster (due to indexing?) than transforming required n_points directly as well. Although that can be simulated with a Class.

      1 條回覆 最後回覆 回覆 引用 0
      • TommyKT 離線
        TommyK
        最後由 編輯

        @tt_su said:

        @tommyk said:

        Perhaps the Sketchup team would find that the change to the API in this way would be too much of an intrusion to Sketchup's standard tools?

        It would be a concern if there was multiple extensions that modified the selection colour of objects. Which extension would get the last say? And how easy would it be for the user to read the selection if the selection color changed?

        I've been mulling this question over these last few days, and I think the solution might be to confine Ruby plugins that manipulate the presentation of a model to a specific style. I haven't formulated exactly how this would work yet, but it makes sense to separate the manipulation of geometry from the presentation of geometry in this way. Would involve extending the Style entity API I expect. What is exciting about this approach is that Ruby can get stuck in doing some special things with the presentation of the model. Eg:

        • change line thicknesses for different components (useful for presenting depths of items maybe?)
        • Color lines by layer (useful for people working with complex models, and want to retain materials on faces)

        This approach makes sense for me, although I am well aware how much more I am asking for compared to my original request! Not to mention compatibility with LayOut.

        @tt_su said:

        Having said that, we've had a couple of requests like this. If you would be able to mock up a real use case, a mock screenshot I can add that to a feature request in our bugtracker.
        I personally think it would be nice to have some generic way to draw additional graphic to the screen to display meta data etc. Not just changing selection colour.

        I will mull over the question some more, and get back to you. And yes, additional graphic on the screen would be very handy, and would certainly improve my productivity in certain areas.

        @eneroth3 said:

        Isn't it already possible to just change the highlight color in the rendering options? It could be done from a selection observer and depend on what's currentply selected. Only supports one color at a time though.

        I did NOT think of that! For my purposes, this may do the trick. Thanks!

        1 條回覆 最後回覆 回覆 引用 0
        • tt_suT 離線
          tt_su
          最後由 編輯

          @tommyk said:

          I did NOT think of that! For my purposes, this may do the trick. Thanks!

          Beware that users might not like that extensions arbitrary change the settings of the style they have set up.

          1 條回覆 最後回覆 回覆 引用 0
          • TommyKT 離線
            TommyK
            最後由 編輯

            One wish:
            Model.active_path= (Array of groups/instances like in existing method: active_path)

            I haven't found a way to change the context (path) elsewhere, at least. I would like it in my case, as I use Ruby to reload a Component Definition. When the user is at the path within a Component that is deleted in the script, when the script executes, it just looks rubbish.

            Second wish:
            ComponentDefinition.path= (String representing path)
            Currently, the only way to affect the definition.path of a ComponentDefinition is to use DefinitionsList.load (which loads a new component completely, and isn't completely reliable)

            1 條回覆 最後回覆 回覆 引用 0
            • TommyKT 離線
              TommyK
              最後由 編輯

              @tt_su said:

              @tommyk said:

              I did NOT think of that! For my purposes, this may do the trick. Thanks!

              Beware that users might not like that extensions arbitrary change the settings of the style they have set up.

              I think the sensible way of getting around this is setting up a new style with the extension. You would then only implement the style changes if the selected style is the extensions style with Styles.active_style.

              1 條回覆 最後回覆 回覆 引用 0
              • C 離線
                Chatham
                最後由 編輯

                I'm getting back to work on a plugin that will let you use WASD first-person shooter controls to navigate the scene, and I would love it if and active tool could programatically disable shortcut keys (or even just assign them, so I could, when the tool was active, unassign WASD, then reassign them on tool close, although that would trash the user's key bindings if SU crashed during tool use...)

                1 條回覆 最後回覆 回覆 引用 0
                • R 離線
                  rekha014
                  最後由 編輯

                  Hello,

                  I am new to google sketchup with ruby script.
                  I have install google sketchup on my linux machine ubuntu 12.04. now able to start with ruby script. i already have ruby script. SO anyone can help to how can i run this script with google sketchup.

                  Thanks

                  1 條回覆 最後回覆 回覆 引用 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 5
                  • 6
                  • 6 / 6
                  • 第一個貼文
                    最後的貼文
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement