User Debug Aid Plugin

User Debug Aid Plugin

Postby driven » Thu Dec 15, 2011 4:48 pm

hi all,

I've been working on some applescripts to help debug on mac and realised I was using something that 'potentially' even novice ruby users could use to sort out their plugin woes on PC's or mac's.

so I turned it into a plugin. It needs more, I need help and advice.

2011-12-15 01.23.08 pm.png

The basic premiss uses the api's new ability to turn all rubies on or off on next launch.

So I made buttons and added quit [only for mac, as I need advice to not kill PC toolbars]
I moved it into 'Tools' so I can turn it back 'ON' when in 'OFF' mode
I then realised I could load rubies through console, and decide to add an additional button to the mac path ...[PC path?]
load '/Library/Application Support/Google SketchUp 8/SketchUp/plugins/as_plugins/as_pluginloader/as_pluginloader.rb'

What it means is when 'OFF' is selected SU closes.
On restart all you get is some of the SU rubies and this.
If you click on 'ADD' it load the 'Plugins' menu item containing only Alex's loader from where you can then easily open the problem ruby on it's own to test for clashes.

I have toyed with 'Ruby Console' opening by default as well, to see if you need dependencies and to show errors for posting to the author, etc...

What I find is I'm now using it all the time to only load a few rubies per session. although a load from list option would be a bonus.

Can anyone have a look/play and give me your opinions.

You do need to D/L http://www.alexschreyer.net/projects/plugin-loader-for-sketchup/ if you don't have it. the .rbz worked here.

I know it's not fully wrapped yet, advice on that is needed.

NOTE: this needs to be in '../../Sketchup/Tools/' NOT 'Plugins'

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

driven 
PluginStore Author
PluginStore Author
 

Re: User Debug Aid Plugin

Postby jeff hammond » Tue Dec 20, 2011 4:24 am

hey John..

so i'm trying this out and it's not breaking anything ;)

the on/off buttons do as they suggest.. the + button brings up the ruby console but i'm not quite sure how to load individual plugins from there :)

the APF button lets me know i have 3 load errors that i haven't seen before (2 for skindigo and 1 for TT_lib which have to do with me not having win32API installed)

let me get some more tips on using this thing..
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: User Debug Aid Plugin

Postby driven » Tue Dec 20, 2011 8:40 am

hi jeff,

the RC is really for debugging, you could comment that out if you want, although typing load '/Library/Application Support/Google SketchUp 8/SketchUp/plugins/weld.rb' for example works. Full path is needed because 'Plugins' is 'OFF'.

the easiest way to load individual plugins is to click add, and under a new Plugins menu there's only Plugin Loader, submenu load single plugin. as you add them your menus grow and the work as normal.

for using additional folders, have a look at Fredo's instructions. [it's an option only on the version I PM'd you]

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

driven 
PluginStore Author
PluginStore Author
 

Re: User Debug Aid Plugin

Postby thomthom » Tue Dec 20, 2011 10:11 am

Jeff Hammond wrote:the APF button lets me know i have 3 load errors that i haven't seen before (2 for skindigo and 1 for TT_lib which have to do with me not having win32API installed)

? OSX version tries to load win32API?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: User Debug Aid Plugin

Postby jeff hammond » Wed Dec 21, 2011 4:26 am

thomthom wrote:
Jeff Hammond wrote:the APF button lets me know i have 3 load errors that i haven't seen before (2 for skindigo and 1 for TT_lib which have to do with me not having win32API installed)

? OSX version tries to load win32API?


well, i've never had load error upon launching sketchup regarding win32 but when i push the APF button with john's plugin, i get this message :?:

Screen Shot 2011-12-20 at 9.36.59 AM.png
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: User Debug Aid Plugin

Postby jeff hammond » Wed Dec 21, 2011 4:31 am

ah.. ok.. i see

driven wrote:
the easiest way to load individual plugins is to click add, and under a new Plugins menu there's only Plugin Loader, submenu load single plugin. as you add them your menus grow and the work as normal.


yeah, i want to set skindigo up to do this (it messes with the new windows so i can't close them super easily)..
can you also turn an individual plugin OFF with this?

[ie- load skindigo when i want but easily prevent it from loading on my next launch?]
that said, i do have a request in to whaat to make skindigo an extension or try to fix the mac error.. this would work well until that time.. i'm currently renaming skindigo in the plugins folder to keep it from loading when i don't want it.. kind of a hassle..
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 11 guests

Visit our sponsors: