SketchUcation Plugin Store

 

 

[Plugin] Hidden Manager (16.Feb.2011)

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby bdbox » Sat Feb 26, 2011 3:38 pm

thomthom wrote:Henry:
mx_hiddenmanager = SketchupExtension.new "Hidden Manager", File.join ("mx_hidemanager","mx_hidemanager.rbs")

This can confuse Ruby - you have space after the method name and the brackets. ( File.join ) On top of that you have that as one of the argument of another method call ( SketchupExtension.new ) where you don't use brackets.

To avoid potential errors, always use brackets. But most important of all, never leave a space between the method name and the brackets.

It's a bit odd that a SU7 user should report this error, because SU8's ruby is more strict. Regardless, this should work:
mx_hiddenmanager = SketchupExtension.new( "Hidden Manager", File.join("mx_hidemanager","mx_hidemanager.rbs") )


i got this error:

No such file to load -- mx_hidemanager/mx_hidemanager.rbsError Loading File mx_hidemanager_loader.rb
No such file to load -- mx_hidemanager/mx_hidemanager.rbs
bdbox
 
Posts: 2
Joined: Wed Feb 03, 2010 2:53 am

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby mac1 » Sat Feb 26, 2011 7:46 pm

schorradt
What capability does this provide vs what the outliner has now??
mac1
Top SketchUcator
 
Posts: 682
Joined: Wed Apr 16, 2008 4:05 pm

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby nomeradona » Sun Feb 27, 2011 2:37 am

nifty tool as your hidden elements are in one place. I can see the relevance.
nomeradona
 
Posts: 1302
Joined: Mon Nov 26, 2007 4:46 am

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby Evan Garmaise » Tue Mar 01, 2011 5:50 am

bdbox wrote:
thomthom wrote:Henry:
mx_hiddenmanager = SketchupExtension.new "Hidden Manager", File.join ("mx_hidemanager","mx_hidemanager.rbs")

This can confuse Ruby - you have space after the method name and the brackets. ( File.join ) On top of that you have that as one of the argument of another method call ( SketchupExtension.new ) where you don't use brackets.

To avoid potential errors, always use brackets. But most important of all, never leave a space between the method name and the brackets.

It's a bit odd that a SU7 user should report this error, because SU8's ruby is more strict. Regardless, this should work:
mx_hiddenmanager = SketchupExtension.new( "Hidden Manager", File.join("mx_hidemanager","mx_hidemanager.rbs") )


i got this error:

No such file to load -- mx_hidemanager/mx_hidemanager.rbsError Loading File mx_hidemanager_loader.rb
No such file to load -- mx_hidemanager/mx_hidemanager.rbs


Some of my users of the PieceTracer tool have reported the same mysterious "No such file to load" error, as you can see here:
http://forums.sketchucation.com/viewtopic.php?f=80&t=34492

A couple of similarities between Hidden Manager and PieceTracer:
1. Both have an underscore in both the directory name and the file name, as most plugins do not.
2. Both load the scrambled ruby file directly out of the loader file instead of using a second unscrambled file inside the sub-directory that loads the scrambled file using a 'require' statement or similar, as many plugins do.

Could these similarities point to a solution to the problem? Could be worth creating a test version with these things fixed to see if that solves the loading problem for those users who have it.
Evan Garmaise
 
Posts: 10
Joined: Wed Jan 26, 2011 2:18 am

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby Evan Garmaise » Sun Mar 06, 2011 2:22 am

I checked with my users and fixing #2 above fixed the problem. schorradt, just create a .rb file in your subdirectory with one line: "Sketchup::require " and then the name of your scrambled file. Then load that .rb file out of your loader file using SketchupExtension. That will fix the loading problem for your users who have it.
Evan Garmaise
 
Posts: 10
Joined: Wed Jan 26, 2011 2:18 am

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby EarthMover » Tue Mar 08, 2011 10:38 pm

Thanks Evan. Good advice. I have the same issue, presumably a conflict with Piece Tracer. I'll see if I can do it manually until the author fixes the issue.
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby cozzolino13 » Fri Mar 11, 2011 9:50 am

this doesn't work after install scf power toolbar

thank
cozzolino13
 
Posts: 2
Joined: Thu Oct 28, 2010 5:26 pm

Re: [Plugin] Hidden Manager (16.Feb.2011)

Postby Gunny » Mon Apr 30, 2012 9:22 pm

cozzolino13 wrote:this doesn't work after install scf power toolbar

thank


quote
Gunny
 
Posts: 1
Joined: Sun Mar 22, 2009 4:22 pm
Name: Enzo

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Previous

Return to Plugins

Who is online

Users browsing this forum: brewsky, KrisM, marchitectes, markkoss2 and 8 guests