FreeBSD I believe.
Posts
-
I was bitten in the hiney by *nix
I wrote a ruby script in TextWrangler (on a Mac) and saved it (OK, I've written dozens, maybe hundreds...
). Howevber, this time, I inadvertently hit the space bar after the ".rb" and saved it. Then, not realizing a blank got added to the name, I attempted to load it and it could not be found. After messing with it, I realized the blank was saved as the third character after the "b" in .rb.
Entering load 'myscript.rb' failed, while entering load 'myscript.rb ' worked! Fat thumbs beware! Leading and trailing blanks are significant on *nix system. Only took me 10 minutes to figure it out.
Who would have thunk.
Todd
-
RE: Setting Tool Tip?
Sketchup.set_status_text("This is for Baker518, the official Ruby Programmer today")
Todd
-
RE: Can't create a scrollable web dialog. Bug?
It's a bug. I reported it to Google for you.
Todd
-
RE: Can't create a scrollable web dialog. Bug?
I have not had that bug, but I don't run Vista or IE 7 either.
The scrolling should indicate that a scrollbar will be shown IF NEEDED. Does resizing the window to make it smaller cause a scrollbar to show up? Do you have enough data elements in your dialog to cause it to not fit within the specified area?
Todd
-
RE: Add to existing sub-menu
That's the best way to do it for now Chris.
Todd
-
RE: Add to existing sub-menu
No can do. We asked for this a year and a half ago, or so.
Todd
-
RE: Blank Method in "Face" Class
Woo-Hoo!! Time for a SketchUp lunch get-together!! (there are others!)
Seriously, this week or next? Lupe Tortilla's - Hwy 6 & I-10.
-
RE: Blank Method in "Face" Class
Somebody's got to do it!
Todd
-
RE: Blank Method in "Face" Class
I sent an email to a developer in Boulder.
No, the SDK does not cover stuff like this.Todd
-
RE: Blank Method in "Face" Class
Your list is pretty close to being perfect. Here's the official word (and no, these are not defined constants... yet).
PointUnknown = 0;
PointInside = 1;
PointOnEdge = 2;
PointOnVertex = 4
PointOutside = 8;
PointNotOnPlane = 16;Todd
-
RE: Blank Method in "Face" Class
I'll check. Good research.
Todd
-
RE: Fisheye?
To the best of my knowledge, it cannot be done from Ruby. The controls that Ruby has over the view are merely what are available through the standard SU dialogs.
Perhaps OpenGL supports this, I don't know.
Nice shoes.
Todd
-
RE: Fisheye?
The most you can get is 120 degrees. You can select Camera > Field of View and simply type 120 and press return. Why the desire for a Ruby script?
Todd
-
SketchUp Ruby scripts Blog
Who owns this blog? Please do not link to ScriptSpot for Smustard scripts. Besides, the links are dead.
As for some background, the owner of ScriptSpot was very eager to have content on his site, so he, without permission, registered my name as a user, uploaded several of my scripts, and added comments "from me" such as you see. He has since ceased that activity and apologized.
We may work out an arrangement with ScriptSpot in the future, but as it stands now, there should be no Smustard scripts on his site.
Todd
-
RE: Save skp file errors
FYI. The default path for model.save is not where you would expect, nor, the current working directory. Save a unique name and search for it. It's probably going to C:\Documents and Settings\Default User\Local Settings blah, blah or some such location. I've put in an enhancement request to make it more obvious/intuitive/documented.
Todd
-
RE: Purge
There is a RemoveMaterials at http://www.smustard.com/script/RemoveMaterials that will remove all materials in use in the model. I suspect there is a collapse everything to layer0 script around somewhere too - maybe on Didier's site. I don't remember seeing a script for removing all styles though. I wrote a PurgeManager back during the V6 beta, but never released it. It uses WebDialogs, has buttons, gives you a before and after image of the counts (before and after purge), and is generally pretty neat. But, I then went on to add the File Size specification, and ran into cross platform issues that turned into bug reports and feature requests, and there it sits - never released.
Todd
-
RE: Two problems
The first problem is because the second import came in as a Group. Right click it and choose Explode.
Todd