@driven said:
hi,
the cursors work on OSX 10.5.8 with the script above if inserted into the original. did you try it?
john
Sent you a PM
@driven said:
hi,
the cursors work on OSX 10.5.8 with the script above if inserted into the original. did you try it?
john
Sent you a PM
Well at this point in regard to the mod keys for scripts, I'm figuring that the easiest way is to have a Mac and a PC version of the script. Not only it's the easiest from the point of view of scripting, but it allows to use different modifiers, which is more within the usual practice of each machine.
I have a version ready for you, including text but there is still the cursor issue.
I worked on the cursor issue yesterday and it's a tough nut. I changed the cursor scripting to make it similar to the API example and to another script I have (in progress) where it works. And it still doesn't work . There is no difference between the two, yet it doesn't work in this script, and there is still the orbit and pan cursor remanence issue. So something else is going on, which I have to figure out. Maybe today.
Same as John,
Substituted VK_ALT on line 350 for == 9 so that option key toggles.
I have no cursor, but I'm working on it.
Also I will include a text to outline what key toggles.
Otherwise functions great.
Thanks
Terry,
From one blacksmith (hobbyist) to another, thanks!
I will PM you the 2 scripts to which I added the toolbar.restore line to make the toolbar remember its previous status (displayed or not) on Mac (I think on PC toolbars work differently).
I also have everything working except parabola and catenary, which do not want to work right, it displays a tiny line, which is unrelated and not correct regardless of zoom.
I am on Mac book pro, OS 10.5.8 and Sketchup 8.0.4810. I typically work in mm.
Everything else works just fine.
I can't look at the ruby because it's scrambled so I don't know what's wrong. It could be the default unit. HAHA I just checked and that's exactly what it is. If I start with an inch template instead of mm it works just fine.
Michael
@amsketcher said:
I installed 2D tools (thanks TIG) on my OS X SketchUp Pro trial version but I can't get dashed lines to stay dashed.
I select dashed line style, draw the 2D line (and it looks dashed) but as soon as I double-click to end the line, the line is laid down as solid.
What am I missing?
If what you're trying to do is draw thing as construction lines, it doesn't work on the Mac.
Here are some tools that will let you use clines on the Mac.
You need to replace the original tools inside the 2DTools folder by these (make backups of the originals!). They are however based on version 4.6 of TIG's tools, but they work fine as far as I know. I don't know of any core modifications done between version 4.6 and 5.0 of these tools and I haven't checked the script to make sure, but it shouldn't be an issue. For Mac users they give you access to all options. For PC users you don't need them (I don't know how the modifier behave, and haven't checked).
TIG, can I use it to include into a tool I'm working on. It's an easy simple rotate tool, and I'd like to include this as planview rotation when hovering over the origin.
@bararaboat said:
In this version the layer Management & layer toolbar does not appear automatically.
how can i make it appear automatically went program open? (su7 mac)Regard,
For the status of the toolbars to be registered (new sketchup opens with the last status (open or closed)) on Mac:
Add these two ruby lines after their respective toolbar definition blocks in the original script:
layertools_tb.restore
layerconfigs_tb.restore
Great plugin thanks.
Could you please include a line with UI::Toolbar.restore (check and match syntax), so it keeps the status of the toolbar (displayed or not), thanks. I'd do it but since you plug in is rbs I can't.
SU8 OS 10.5.8
Updated from version 4.6 but I'm surprised you didn't include my modified tools for Mac I gave you, the Cline toggle still doesn't work on my mac (SU8, OS 10.5.8), one of the circle tool toggle doesn't work.
They are your tools so whatever decision is OK by me anyhow.
I still have 4.6 modified tools versions of:
2D arc; 2D circle; 2D line; 2d Polygon; 2Drectangle
available with cline and polyline toggles for mac and the text box appropriate changes. All toggles fixed, some other slight changes, mostly to make it Mac friendly (not tested on PC though)
Let me know if you want them.
Thanks so much for your work.
Did you change any of these tools from version 4.6? (so I know if I just can replace or I have to dig and reapply modifs in the scripts)
Thanks!
Yeah I know about the different files and such and this one is such a complex branched one, a beautifully programmed one. As for the sketchup API (toolbar, command and menu) I'm not 100% fluent yet, but getting there, already fixed many plugins.
The thing is it seems to me that it's a difference in file behavior from the PC to the Mac, as if I understand comments made it behaves properly on the PC (looks in the plugin folder) but doesn't seem to on the Mac. Since Jim wrote it for PC there may be a quirk on Mac for which there is a way around that someone had already encountered.
Of course I won't hack without backup and protections and what not, and without understanding the behavior of the original program, but I can only imagine what it does on a PC and see what it does or doesn't on the Mac.
In this case the program and the UI work great.
OK I know you're right I'll do more homework! Thanks for the links.
I tried to use Jim's custom toolbar but it only accesses sketchup commands (I'm on MAC) not plugins. I tried to get into it and modify it to access all plugins by name but I'm not 100% sure of how yet.
I'm pretty sure it's a directory issue, it only looks into the proper subfolder (toolbars>Files>sketchup).
I figure either I could add another place for it to look (like this folder and the plugin folder), with a command such as: dir = File.dirname(FILE) or Path=File.join etc.. and proper direction, or in the "if file.exist" loop, add a look somewhere else (in plugin folder).
And then I probably have to create another folder with copies of the icons (as they could be all over the place) which I would also use for new icons for tools that don't have them yet.
Anybody can help? I'm not really experienced in Ruby so I'd have to understand what those do exactly before.
Thanks
@tig said:
So are you saying id I change the '..==VK_CONTROL' tests to '..==VK_CONTROL or ..==VK_COMMAND' it'll work on both PC AND MAC?
Please post or PM the files
I need to prepare an update...
Well here is the thing, the control command on MAC should work but it didn't and I don't know why, sometimes it is said and written that the control function on PC is the command function on MAC, it didn't work in this case either.
So I just substituted the Command key to the control key and left the ALT alone (which is option on MAC).
I'm not sure what the VK_COMMAND corresponding key is on PC if any (maybe the window icon key).
For the sake of information here is some I found: http://www.roughlydrafted.com/2007/08/11/how-apple-keyboards-lost-a-logo-and-windows-pcs-gained-one/
So the "or" line may work but may introduce a second key on PC which may not be desirable.
As for the generic commands that Thomthom listed they will work but beware. I thought about using those too, but in my particular case I work on a laptop and I don't have a "menu" key AFAIK, so again it's not as universal as they'd like.
Copy_modifier_mask and Alt_modifier_mask would work fine here it seems but they reverse the use (ctrl and alt)
As you saw from the story above the control key is really the command key on mac keyboard so I found it just simpler and more intuitive to modify all (text and variables), where option/alt remains such and command becomes the more global modifier. Much more logical and clean as the text match too.
Files coming later tonight.
On the 2D line, alt could be a 3 way toggle too but that's more work.
The link that Thomthom posted has all the variables mentioned (VK_COMMAND, etc..) lower in the text. They claim it to be universal Mac/PC but I'm not sure. VK-ALT for sure (Option/Alt key on my keyboard)
OK I've solved the problem of the control key on Macs. Into the ruby programs that correspond to tools that have a ctrl modifier, I changed all tests for VK_CONTROL into VK_COMMAND, I changed the display to cmd too.
I don't have stuff to zip but I'll gladly send you the modified files through email or whatever you'd like.
Thanks TIG
@tig said:
I know why the MAC Help doesn't open.
If you put this attached file into the ../Plugins/2Dtools/ folder in place of the earlier one it should open Help on a Mac... [attachment=0:36uy3x3m]<!-- ia0 -->2D#loader.rb<!-- ia0 -->[/attachment:36uy3x3m] I've also temporarily added this updated file to the first item in this thread...
2D Tools sub-menu is to be found under the Draw menu...
It works like a charm, thank you Sir! Sorry for the submenu, I can't believe I didn't find it before, I always used he toolbar so never looked for it, it's only until you mentionned whether help could be accessed from the submenu that I tried to find it.
@tig said:
@oxer said:
Hello!!
The first Thanks! for your marvelous plugin. I'm Spanish user of SUp, i have seen that the last version include Spanish translation, my problem is that if i push on the help icon into SUp, no it appears the help, i don't know why, i work in Mac, in the 2Dtools folder there is a file with this name "~$toolsHelp.htm" its contents is: "TIGTIG The Grants$(^±¤ï˜|ì*,%"
Can be the problem this? is a problem in the characters codification in Mac?
Waiting your answer, advanced Thanks!!Somehow a 'rogue' htm temporary file has got left in the zip file [unnoticed] - however, it's not needed at all and its existence shouldn't cause a problem. There should also be a file called
2DToolsHelpES.htm
and a matching folder of images etc, this is the Spanish help file that should load for you on clicking the help-button or picking the equivalent menu item. I've reattached it all of them in a zip file, to see if it helps.
Put everything [htm and folder] into the ../Plugins/2DTools/ folder
Can you open the Spanish htm file 'manually' - double-click on it - when outside of SketchUp ?
If you cannot then there is something that is not working properly in the 'help' file lookup.
Can you also copy/paste this line of text into the Ruby Console and report back what the result is...
Sketchup.get_locale.upcase
It will be fixable...[attachment=0:1g18rgvi]<!-- ia0 -->PutInto2DToolsFolder.zip<!-- ia0 -->[/attachment:1g18rgvi]
Hello TIG Thanks very much for all your stuff it's awesome. I've been using the 2D for a while no major issues.
SIncidently though I have the same problem with the help file on Mac, Did the extraction many times, tools work mostly (except toggles, more below) but help doesn't.
File (2Dtoolshelp.htm)can be opened separately (the one in the plugins, I use the EN one)
Pluging your command into the ruby console gives me EN-US
More troubleshooting info: clicking the help button doesn't do anything, no info in the help console. The button highlights but doesn't turn grey and any other button (tool) remains active.
Now another very minor issue I have is that the CTRL toggle doesn't work (it's a MAC that's why). For example for the arc tool: I can't get anything to change but select 1st pt, 2nd pt and then circle circumference. Command and option (alt equivalent) do nothing as expected, and control doesn't toggle.
Control does this: If you start with an arc (no other object) and keep it pressed it prevents you from clicking point until you release it, then it does nothing. As toggle it doesn't work either.
If you have already an object (a line for example) and clicking on it, it brings up a contextual menu (the entity info menu, same as right click)
Alt toggle works fine on other tools.
The undo button does weird things too on entities. It erases the first one or few and then either it adds points or it just stop erasing.
Also incidentally, no menu access, only the tool bar. ( I don't know if there is supposed to be a menu access, just in case I mention it)
All these are minor issues, as I"m really happy with everything as it is, so it's just for feedback.