SketchUcation Premium Membership

 

 

[plugin] Ruby Code Editor - UPDATED to v3.0 3/4/2013

Re: [plugin] Ruby Code Editor as an extended WebConsole

Postby thomthom » Mon Feb 15, 2010 3:29 pm

Webdialogs on PC created using .show() is always parent to the SU window and will stay on top. Like SU's toolwindows.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17545
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [plugin] Ruby Code Editor as an extended WebConsole

Postby Dan Rathbun » Tue Feb 16, 2010 8:05 pm

driven wrote:BTW: I found the your 'missing manual' page helpful, but only found it through google after I almost last-night.

Check out these links (bookmark them!):

Sketchup Ruby resources
http://forums.sketchucation.com/viewtopic.php?f=180&t=10142

Developer's Forum Sticky Links
http://forums.sketchucation.com/viewtopic.php?f=180&t=20427

State of Observers
http://forums.sketchucation.com/viewtopic.php?f=180&t=20676
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4069
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [plugin] Ruby Code Editor as an extended WebConsole

Postby driven » Tue Feb 16, 2010 9:10 pm

cheers for those Dan, it is a bit hard to navigate this forum, when your not quite sure what your looking for...

don't suppose you know a way of turning off

Code: Select all
UI.play_sound(Sketchup.get_resource_path("video/fera.mp3"))

#in sync with

when "stop"
      UI.stop_timer @timer1;"video/fera.mp3"


I know this dosen't work but I can't find any method of having the sound pause or stop when I turn off the video texture, which I can turn on and of at will.

I could change a new page and switch to another .mp3 (blank), but as an exercise I'm trying to avoid that as instead off pause, continue, need to start over to keep in sync...

john
driven
Top SketchUcator
 
Posts: 1409
Joined: Fri May 01, 2009 11:50 pm
Name: John
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [plugin] Ruby Code Editor as an extended WebConsole

Postby chyn2000 » Tue Feb 16, 2010 10:45 pm

I wanted to say that this is an AWESOME plugin!

Some functionality suggestions that (IMHO) would make your interface even more invaluable:

Add break point capability:
At break points, the pluging could add a popup before execution (behind the scenes, not in the viewable text field). The user would just press 'OK' to continue on.

Add Escape or Kill button:
The Escape would be an emergency breakout to stop execution if the user created an inf loop. Maybe force inserted into any loop conditions (again, behind the sceens).

Add Variable Watcher window:
This might be pretty hard, but then maybe not, but also a variable watcher window sharing the space with the results/error window. I could see this working by having pairs of fields. Type the variable name in one field and the program updates that fields pair with the in scope value.

Reduce Web Console's realestate during execution:
Have the option to hide, minimize or make the Web Console transparent during code execution.

Just some suggestions, though I'm sure you are busy doing things that actually make you money so you can pay for internet access (oh, and I guess eat and have a place to sleep too... ;) )

Cheers!
Reg
chyn2000
 
Posts: 9
Joined: Fri Sep 25, 2009 8:04 pm
Name: Reg

Re: [plugin] playing mp3 in WebDialog

Postby Dan Rathbun » Wed Feb 17, 2010 9:24 am

driven wrote:don't suppose you know a way of turning off ...
This needs to be broken off into a new thread. It's far removed from the WebConsole/RubyEditor discussion.
(and sorry.. John, I don't mess with sound in Sketchup or WebDialogs. My only suggestion would be to embed a media player of some kind in the webpage. Check up on the html OBJECT tag. [EMBED and APPLET are deprecated.])
http://msdn.microsoft.com/en-us/library/ms535859(VS.85).aspx
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4069
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [plugin updated] Ruby Code Editor as an extended WebCons

Postby chrisglasier » Tue Mar 16, 2010 3:46 am

Here's yet another plugin related to this from 2006.

The introspection aspect is interesting but it seems to have some problems with XP.
Please, register (free) to access all the attachments on the forums.
User avatar
chrisglasier
 
Posts: 1014
Joined: Tue Jun 03, 2008 9:11 am
Location: Hong Kong/Zhuhai
Name: Chris Glasier
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [plugin updated ] Ruby Code Editor as an extended WebCon

Postby rvs1977 » Sun Sep 12, 2010 10:40 am

looks great!

I discovered a strange behavior with my (danish)keyboard. When I want to
make brackets [ ], it opens a small textarea inside the console.
The textareabox appears when I push the AltGr key. When I enter numbers
and press Enter, it submits it at the top op the console???

anyone seen that too?
---
Rudy
rvs1977
 
Posts: 48
Joined: Thu May 20, 2010 7:54 am
Name: Rasmus V Sorensen

Re: [plugin] UPDATED: Ruby Code Editor as an extended WebCon

Postby alexschreyer » Wed Apr 13, 2011 4:29 am

Just updated to version 2.0.

Cheers,
Alex
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [plugin] Ruby Code Editor - UPDATED 2011-04-12

Postby Gaieus » Sat Jul 28, 2012 9:31 pm

Alex (or anyone as a matter of fact): excuse my utter ignorance but how do I launch this plugin at all? :oops:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27602
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [plugin] Ruby Code Editor - UPDATED 2011-04-12

Postby driven » Sat Jul 28, 2012 11:35 pm

it's under Window >> Ruby Code Editor, not Plugins

make sure it's 'checked' as an extension in prefs if not showing up

john
driven
Top SketchUcator
 
Posts: 1409
Joined: Fri May 01, 2009 11:50 pm
Name: John
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: [plugin] Ruby Code Editor - UPDATED 2011-04-12

Postby Gaieus » Sun Jul 29, 2012 1:28 am

Holy crap! I did not even think of that location. Thanks a bunch! :thumb:

(And of course, to Alex for the plugin) :thumb:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27602
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Previous

Return to Plugins

Who is online

Users browsing this forum: asareza, Dave R, francinevial, LUCAARTS, manish_seeker, Rich O Brien, TIG, xvikex and 5 guests