Methinks there is no way to do it. I'll check.
Todd
Methinks there is no way to do it. I'll check.
Todd
They are different for the Mac and the PC. In your onKeyUp method, simply put in a "puts" to print out the keycode for any key you press. If you need a keycode for the other platform you might not have, ask.
Todd
Well, how big of a dumb ass are you?!! There are examples under the doc for Command#small_icon and #large_icon. Cut and paste either of those (they are the same) into a Notepad session and give 'er a try.
If you need more help, come back for round #3!
Todd
An observer script could be written to "link" objects to accomplish this.
Well, that's easy enough to understand with a picture! Thanks azuby.
So, all that's needed to determine the azimuth is
Right?
I'm also guessing an azimuth value is worthless without some type of lat-long to go along with it. Is this correct?
Todd
No help here, but I would like to ask a faavor. Can you draw, in SU, an example that illustrates what an azimuth is? And, how an example one would be calculated? I went to wikipedia and I still don't get it.
Thanks, Todd
Get the vertices of all 4 corners. Use Point3d#distance from any of the 4 points to the other 3. Throw away the longest distance. The two remaining are length & width (assuming you have a rectangle or square).
Todd
Hey, don't feel bad. I've spent hours writing a script, only to learn myself I had just reproduced functionality that was 2 clicks away already.
Todd
I'm not really sure there is a need for such a script.
If you right click a face, and choose Align View, does that do what you want?
Todd
Not a new script, but it's been "off the market" for quite some time.
Here's the tutorial about what it does: http://www.smustard.com/script/LinearLength
Thanks, Todd
Yes, there are several posted... in the old Ruby forum... that is now in Google Groups... whose search facilty works... sort of. It will find the posts, but not let you drill into any of them.
The alternative is to browse through that Ruby forum page by page, one at a time, in sequential order, with no jumping around, in hopes of finding the post sometime before your teeth fall out.
There are two methods. .find_support_file and .find_support_files. Try the other one.
Todd
I want to add that this script is pretty cool. I've been beta testing the Mac version for Rick, and even though it doesn't work, yet, it is still pretty neat technology.
Todd
Thanks azuby. I also found a description on my Mac by going into Terminal and typing "man ln". I figured that's what they were.
Todd
I have a Mac. What's a softlink?
The plugins folder itself has to live where it currently lives. However, you can set your system up to have an additional folder (or folders) included in the load path that you have authority to write to. To do this, edit the sketchup.rb script to add an additional path in the routine that preloads all the scripts.
Also, you can always manually load a script from the ruby console, like this:
load 'full_path/script_name.rb'
Todd
Hi Clark. There is a dropdowns.rb script floating around somewhere that shows how to do mutiple dropdowns in a given dialog. (I wrote it, and dashed lines too!) Check the Didier's Depot, or the old SU Ruby Forum.
Todd
Yes, it works across platforms. In Windows, it goes into the Registry. On the Mac... I don't know. Perhaps the .plist file. I haven't snooped around enough on the Mac yet.
Windows has issues with certain characters whne saving to the Registry, so test your values that get saved and retrieved. You may need to encode them somehow.
Todd
Anytime you create an arc or a circle, you have the opportunity to change the default number of segments. The default is 12.
As an example, right after you draw an arc or circle, type 24s and press ENTER if you want to use 24 segments for the shape.