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

    Auto show plugin window at startup

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 2 Posters 1.4k Views 2 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      This is up to each plugin programmer.

      Perhaps he exposed a module function ?

      Yep.. it's AE::Console::open
      OH wait.. that may be a different console plugin.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        I think Alex uses AS_RubyEditor::RubyEditor.new , but it's been a while since I updated/used his console...

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

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

          Try Console+:
          http://sketchucation.com/pluginstore?pln=ae_Console

          I'm not here much anymore.

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

            Sorry. I misread your first post. You were asking about an Editor. And I replied about a Console.

            An Editor and a Console are two (2) different things. But they work together.

            Sometimes a fancy editor will have a console window built-in. But Alex's editor does not.

            This means you must use a separate console. You may choose to use either the simple console that comes with SketchUp, or one with more features like AE_Console+.

            When you execute code from Alex's Editor, you should also have a console window open. It will display the text from STDOUT and STDERR.

            I'm not here much anymore.

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

              I am on Windows, so I use Notepad++ with a dark outer space theme. (I cannot stare at bright screen all day.)

              It is extensible (plugins) has a tabbed interface (with dual side x side panes which I always use, and can be used with a Compare plugin.)

              It supports all kinds of text encodings, 3 EOLs, hotkey namespace & block folding by levels (ALT+1,ALT+2, etc.)

              [Info] Notepad++ : Tip, Tricks & Plugins

              Also several users here made up auto complete file(s).
              Notepad++ SU8 Ruby API Autocomplete
              Thomas moved it to a BitBucket repo, and it may need some updates.

              Jim Foltz also hooked it into the SketchUp Debugger:
              SketchUp Debugging for Notepad++

              💭

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • D Offline
                driven
                last edited by

                @sawdust...
                are you still on v8, or is your profile out of date?
                only ask because both the Ruby version and 'Ruby Console' have moved on quite a lot since....

                john

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

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by

                  A few of us run modified versions of jf_RubyPanel to make life easier...
                  It quite easy to add items...

                  my mac version...

                  I have a separate dev toolbar for turning Ruby on/off and re-starting...
                  e.g. one is re-starting SU with only su_plugins + the one I'm working on loading...

                  john

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

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

                    @sawdust_online said:

                    It works, of course! But I have to paste each time I want my script to run. I tried to get that last command with Up key but nothing appears. It has gone.

                    That is weird,... the UP key should work if the Console window has focus. So you may need to click on the console's input box to give IT the focus, before using the UP or DOWN keys.

                    @sawdust_online said:

                    Do I have to paste [the whole path] each time, nothing shorter?

                    Oh no. In the console you are in SketchUp's Ruby environment.
                    It uses the $LOAD_PATH array (aliased as $:,) to search for scripts and extensions when load or require is called.

                    The USER Plugins path is already in $:.
                    You can see whats in the loading path array at the console:
                    pp $:

                    You can also push your own development paths into the array either by a script or a console command.
                    $: << ENV["USERPROFILE"]<<"/Documents/SketchUp/project"

                    .. so anyway ... in the Ruby environment, you only need to type a relative path from one of the Ruby load paths.
                    load "geartool/wormgear.rb"
                    .. assuming that "geartool" is some subdirectory under one of the load path directories.

                    ADD: The $LOAD_PATH array (alias $:,) is NOT an autoload feature of Ruby. It is SketchUp that autoloads scripts that are in the "Plugins" and "Tools" directories.

                    I'm not here much anymore.

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

                      @sawdust_online said:

                      Tell me, can we deal with sketchup API and another language than Ruby? ... is there any other way ?

                      You can write extensions in C & C++.

                      @sawdust_online said:

                      I use it for about a week but I'm not sure to go deeper. At first it looks as a strongly typed language easy to use for developers but this doesn't turn real. How a language could be easy if it requires two keys for commenting a single line? it's the first time I meet such odd thing!

                      It would be better to start a new topic about the Ruby language.

                      Or repost your thoughts to one of the old topics...

                      Should we / could we learn Ruby?

                      Where to Start with Ruby?

                      I'm not here much anymore.

                      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