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

    HELP setting up a SU code editor

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

      you know that SketchUp Bridge allows running ruby code from another process in the SU process.

      for openGL preview you can have a window inside SU for previews (tested by myself) but depends on what you want to preview in the first place.

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

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        driven
        最後由 編輯

        hi TBD,

        can Sketchup Bridge work on a mac?

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 條回覆 最後回覆 回覆 引用 0
        • tbdT 離線
          tbd
          最後由 編輯

          driven: not yet. I am working on it.

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

          1 條回覆 最後回覆 回覆 引用 0
          • J 離線
            jessejames
            最後由 編輯

            @unknownuser said:

            I didn't think that YOU (the author of one of the most comprehensive "hey guy's SU codings NOT hard" books proscribed to the FOFO school of teaching and learning

            I hadn't grasped that your, "hey guys, no need to look under the hood" API was devised to slow peoples own programing knowledge.

            I must say I'm rather disappointed in your attitude.

            Yes i must say i am rather disappointed in your low brow attempts to slander Martin. If you don't like the way Martin chooses to teach Ruby scripting, guess what, DONT READ IT!

            You only make yourself look like a vindictive little brat when you make comments like these and i am very upset no one else has called you out on it (mods i'm talking to you!)

            I think Martin takes a wise approach to teaching by allowing the student to take the course that suits them well, not by cramming certain practices down their throats and saying deal with it.

            This whole thread is in my option a waste of time. You need to listen more to Dan Rathburn because he is on the right track.

            @unknownuser said:

            "Google give us the power and we will build the infrastructure".

            Always sleep with a loaded gun under your pillow!

            1 條回覆 最後回覆 回覆 引用 0
            • thomthomT 離線
              thomthom
              最後由 編輯

              @jessejames said:

              Yes i must say i am rather disappointed in your low brow attempts to slander Martin. If you don't like the way Martin chooses to teach Ruby scripting, guess what, DONT READ IT!

              You only make yourself look like a vindictive little brat when you make comments like these and i am very upset no one else has called you out on it (mods i'm talking to you!)

              I see nothing wrong in this thread. Good discussion that is all.

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

              1 條回覆 最後回覆 回覆 引用 0
              • thomthomT 離線
                thomthom
                最後由 編輯

                @jessejames said:

                This whole thread is in my option a waste of time. You need to listen more to Dan Rathburn because he is on the right track.

                One could say - if you don't like the thread - don't read it. 😒

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

                1 條回覆 最後回覆 回覆 引用 0
                • Chris FullmerC 離線
                  Chris Fullmer
                  最後由 編輯

                  @thomthom said:

                  One could say - if you don't like the thread - don't read it. 😒

                  I'm desperately trying to do just that, but somehow I am compelled to keep reading in hopes that I might begin to comprehend what the thread is talking about. 😆

                  So when we're talking Mac compatibilty in this thread, are you mostly thinking about the apps that write the program, or are you also referring to scripts that have been written on one platform not working on the other platform? So far I have not ever run into that (that I know of). Is it common?

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 條回覆 最後回覆 回覆 引用 0
                  • D 離線
                    driven
                    最後由 編輯

                    @chris fullmer said:

                    So when we're talking Mac compatibilty in this thread, are you mostly thinking about the apps that write the program, or are you also referring to scripts that have been written on one platform not working on the other platform? So far I have not ever run into that (that I know of). Is it common?

                    Chris, your input is very helpful, please bare with the meanderings. they do tie together.

                    This thread is primarily an inquiry into 'cross platform' editor compatibility

                    my input is Mac'centric' because I own Mac's and whilst there are mentions of problems here and there I couldn't find an appropriate thread dealing with potential solutions.

                    there is even less information for anyone trying to find a solution for those using Linux or variants

                    The answer may be that there is no single solution, unless Google suddenly packages up SU Plugin development kit

                    @chris fullmer said:

                    So far I have not ever run into that (that I know of). Is it common?

                    it's possible you haven't, most 'ruby' scripts are fine, unless complex. it's when you start move away from just 'ruby' that it all goes pear shaped

                    You would notice more if on a Mac, there's a lot of PC only scripts.

                    Martin, I hope you saw my apology, and perceive it as such. I put your absence down to workload and it hadn't occurred that I may have 'driven' you away... thanks for pointing it out jessejames...

                    john

                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                    1 條回覆 最後回覆 回覆 引用 0
                    • J 離線
                      jessejames
                      最後由 編輯

                      @driven said:

                      Martin, I hope you saw my apology, and perceive it as such. I put your absence down to workload and it hadn't occurred that I may have 'driven' you away... thanks for pointing it out jessejames

                      Thanks John for apologizing and i now hold a great respect for you. Anyone can make mistakes, but only the truly honorable have the capacity to admit them. Thank you!

                      Always sleep with a loaded gun under your pillow!

                      1 條回覆 最後回覆 回覆 引用 0
                      • chrisglasierC 離線
                        chrisglasier
                        最後由 編輯

                        @chris fullmer said:

                        ... Is it common?

                        I am not really qualified to participate in this debate but my experience may be helpful in the light of Chris's comment.

                        I have published two plugins - cgScenes and nset SketchupAPI and I am working on an expansion of these to provide deeper hierarchies and greater control of scenes and components, unlimited links to data from local and remote sources and analytical animation.

                        These use web dialogs, which seem to me to be an important link to get Sketchup models to the general population to serve as transporters of reusable data. cgScenes works on a Mac only because of extensive work by John [driven]. The problem with the other two seems (I think) to come from conversion of data stored in JSONotation.

                        So whether or not you acknowledge my approach, problems with two important parts of current technology - the web and efficient data transfer - should be recognised in relation to Sketchup, Macs and PCs.

                        Incompatibility may indeed be not common. If so perhaps the reason is fear of the unknown, supported by many threads here recounting the horrors. I think John has a great and noble idea how to overcome or at least find the causes of these problems and I sincerely hope you will all work together to find the means.

                        Please don't shout or shoot at me; I am only an aging reluctant (and amateur) coder.

                        With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                        1 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          driven
                          最後由 編輯

                          hi all still interested,

                          I've continued pursuing a SU external editor, and currently am trying to set up http://www.jetbrains.com/ruby/features/ruby_ide.html which although not free has great potential for the sorts of things being done on SU rubies. don't let the Rails credentials put you of this an almost infinitely tunable rudy ide, and settings can be shared, so once one person has the right SU build, others could try it out, tweek it more, write plugs, sounds a bit like SU.... Very powerful in the right hands but tunable for beginners. Have a look.

                          In the mean time I did a little experiment with Alex's Ruby Code Editor and I thought some might be interested,
                          on a Mac in SU 7.1

                          it is a live editor, not photoshop, http://getfirebug.com/firebuglite it's in beta, I've only just installed it so can't report on it's full potental

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 條回覆 最後回覆 回覆 引用 0
                          • Dan RathbunD 離線
                            Dan Rathbun
                            最後由 編輯

                            That IS interesting John.

                            But it's only for coding and testing WebDialogs (not Ruby.)

                            By running in Alex's Code Editor, only Alex's Code Editor is being debugged.

                            But it may have promise.

                            @ThomThom: You may find this interesting, Firebug extension for jQuery development: http://firequery.binaryage.com/

                            I'm not here much anymore.

                            1 條回覆 最後回覆 回覆 引用 0
                            • thomthomT 離線
                              thomthom
                              最後由 編輯

                              @dan rathbun said:

                              @ThomThom: You may find this interesting, Firebug extension for jQuery development: http://firequery.binaryage.com/

                              👍 👍
                              Nice find!
                              Hope it will eventually also work with Firebug Lite.

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

                              1 條回覆 最後回覆 回覆 引用 0
                              • D 離線
                                driven
                                最後由 編輯

                                @dan rathbun said:

                                That IS interesting John.
                                By running in Alex's Code Editor, only Alex's Code Editor is being debugged.

                                Hi Dan,
                                I've been using it to help debug Chris Glasier's nSet for Mac use, but in the process I tried it on 3 or 4 WebDiolog
                                based rubies and it seems a very useful debug tool, for that type of interactive ruby that is popular... and usually PC only. it does report .rb errors (in relation to itself)

                                I was actually trying to put syntax highlighting into RCE using a similar approach, and though I'd try this as a practice run. I should point it to my url.local and run more features, but I haven't stopped using it long enough yet...

                                has any one tried Ruby-Mine yet??

                                john

                                learn from the mistakes of others, you may not live long enough to make them all yourself...

                                1 條回覆 最後回覆 回覆 引用 0
                                • thomthomT 離線
                                  thomthom
                                  最後由 編輯

                                  @driven said:

                                  has any one tried Ruby-Mine yet??

                                  Afraid not. The last week I was deep into getting to grips with C programming.
                                  So much to try out - so little time. 😞

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • chrisglasierC 離線
                                    chrisglasier
                                    最後由 編輯

                                    This relates to FireBugLite.

                                    Can anyone tell me why this happens:

                                    pig 006.png

                                    and how to change what so I can see the code.

                                    Thanks

                                    With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Dan RathbunD 離線
                                      Dan Rathbun
                                      最後由 編輯

                                      @Chris: Do you have nsetWebDialog.set_full_security= true or false ??
                                      (It defaults to false if you don't explicitly set it.)

                                      I'm not here much anymore.

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • Dan RathbunD 離線
                                        Dan Rathbun
                                        最後由 編輯

                                        @Chris: In your webpage for nset, it would easier if you assign an ID to the SCRIPT element(s) that load the external javascript files.

                                        %(#804000)[<SCRIPT ID='nset_core_js' LINK='..path../core.js'>]

                                        Then in Firebug Lite, try inspecting by ID. Enter the ID name in the inspect control box. If that doesn't work, try entering:
                                        document.getElementById('nset_core_js')

                                        I'm not here much anymore.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • Dan RathbunD 離線
                                          Dan Rathbun
                                          最後由 編輯

                                          Firebug page(s) to bookmark:
                                          http://getfirebug.com/wiki/index.php/Main_Page

                                          http://getfirebug.com/wiki/index.php/Firebug_Lite

                                          Forum - Google Groups [EDIT-Added]
                                          http://groups.google.com/group/firebug

                                          I'm not here much anymore.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Dan RathbunD 離線
                                            Dan Rathbun
                                            最後由 編輯

                                            @chrisglasier said:

                                            Can anyone tell me why this happens:

                                            @unknownuser said:

                                            Access to restricted URI denied

                                            I suspect what's happening, is MSIE copies the code into the "Temporary Internet Files" folder, which is usually a Restricted Sites Zone (security-wise.) I've tried (in the past,) to add a specific local folder to my "Trusted Sites Zone" but MSIE refuses.

                                            I'm not here much anymore.

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

                                            Advertisement