Hi Chris,
whats about an 'put objects perpendicular to' option? Lets say, to put the nearest face of a group/component instance on another face, (having two parallel faces)
application: moving a cabinet to a wall
Posts made by jojo9
-
RE: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)
-
RE: Cone camera
@tig said:
Perhaps my NudgeOrbit tool ? http://forums.sketchucation.com/viewtopic.php?p=238647#p238647
Hi TIG!
As far as i know, NudgeOrbit permits to spin over/under the global axis only, keeping the actual camera viewpoint into account. But i want to set a certain viewpoint angle to the focused object, like in frog-or bird-view; sometimes the isometric projection isn't clear enough to inspect sliced buildings/rooms. I prefer the parallel projection, because the perspective view distorts everything. -
RE: Cone camera
Grumble…somebody other stumbling over my post?
maybe the title i've chosen isn't really clear, Huh
I meant not camera focal angle (wide-eye-tele) but the direction, the vector in witch the of ray of my camera points…The concept i want is to guide my camera along a path, (circle or curvilinear and 3D path) but -
here comes the difference- animating things from a bird or frog -view in parallel projection. (not perspective)Till now i wasn't able to find a script, to realize my idea.
See the attached images to understand what i mean:
-
RE: Su plugin categories
@unknownuser said:
is 'your template' setup with parallel projection, I think you can do that, otherwise
you can setup a shortcut key for parallel projection [shift+P is what I use] and then you can toggle between it and perspective anytime you wish.sure my personal template starts up using parallel projection, but i would like to open any project in this particular view.
@unknownuser said:
I'm not entirely sure what your trying to do, but you can do a lot with applescript and SketchUp startups.
nothing more or less to organize/reduce the overall menu entries of my plugins and to load another view projection than the default one.
@unknownuser said:
there's a couple of tricks to it, but if you know applescript and automator you can have completely different sets of plugins for different tasks when started with an applescript and you can certainly switch on parallel projection and the tool of your choice that way...
Sketchup isn't nor Applescript- nor Automator-scriptable. What do you mean? The only method to access Sketchup is coding ruby scripts.
@unknownuser said:
if you do a search here for sumac.app you can see some of the apps I use.
i'll do a check. But i think, i love to write my own Applications with Applescripts.
Next days i'll put together a simple tutorial how to use Didier B.'s menu ruby using Applescript . -
RE: Su plugin categories
@unknownuser said:
No, you don't need to merge into one big script. You need to to save a reference to the submenu object, when it's created. For example, using a global varable. But make sure it is unique:
$jojo9_submenu=UI.menu('Plugins').add_submenu("[jojo9]") > $jojo9_submenu.add_item("Item1") { puts "Item1"}
Code 1 is designated for a standalone script, right? (like: #jojo9_startup.rb) If so, I would like to add the parallel projection as default view projection at startup of 'sketchup. Perspective is only good for perceptual and presentation purposes.
@unknownuser said:
Then in the next plugin something like this:
if $jojo9_submenu > $jojo9_submenu.add_item("Item2") { puts "Item2"} > else > something > end
Code 2 should be the syntax to append to any script i want to put in a previous defined reference subfolder. I've had no time to test these snippets but i think they 'must' work; they are so nice simple.
-
RE: Cone camera
@unknownuser said:
Perhaps Flightpath?
Oh.. with curves is it easier?
The only problem i have is that i need a fixed, adjustable camera angle, looking respectively upwards or downwards, its a necessary feature i search... -
Cone camera
Hi
I search a ruby to spin the view around an object but with a given high from the floor, with one or two radius parameters (path=circle or ellipse) and… important: a certain angle to the floor (always perpendicular to the path, but with a certain degree)
Exists such a simple and nice toy? maybe working with curves too?Doing the same manually is a bit tedious…
-
RE: Su plugin categories
Hi Kyyu,
i'm confused.
I think you say I need to merge the relevant scripts, (who has to live in the same subfolder) into one longer script?
Because two scripts cannot load at the same time and scripts load hierarchically, after the abc, not? -
RE: Su plugin categories
Hm, lets try to think about a solution:
its easy to create sub-sub-folders, but I want a method to find an existing subfolder, rather than to add a submenu twice, how do I do?some rubies has no path reference- whats about these? I don't mind the contextual menus but the extensions, libraries or other (for me at last) unidentified scripts.
-
Su plugin categories
Hi,
since I collected my first rubies, i wanted to organize my growing number of plugins too. So I found over the time various tools, like sutool (Wikii, only v. 008) the extension manager (Mario P.)-how to configure ?; a collection of rubies into large toolbars (Cadfather-some very useful) then the Redirect_Plugins by Fredo and at last the menu ruby of Didier B.**a)** The first tool (sutool) didn't work properly on my mac, because macs deal with slash, not backslash,-punctuations, for the paths. With a little workaround of this issue, the script worked well. Another annoying side-effect was given of the refreshing button, causing a silly collapsing-behavior on the sutool-window, all the time **b)** The extension manager by Mario Pehle was designed really nice, but unfortunately too much technic and therefore, too inconvenient to configure for a non-ruby-scripter like me (somebody knows a tutorial?? sorry for my ignorance) **c)** the toolbar collection of Cad father was and is indeed, very helpful, but the list of rubies is longer that any visual toolbar plugin can contain (thats sane and reasonable) **d)** the redirect_plugin of Fredo. But it doesn't work for me, because i need sorted menu entries within sketchup, than methods to call supplementary scripts. **e)** the menu-plugin does it well, but the code to add isn't applicable for any script. Maybe because one has to know more than five commands to add these all. In applescript i'm able to write scripts whose rewrite other scripts, but with ruby- :unamused: ..no idea how this should work.
Summary:
the best would be some load-standart handlers assigned with some tag which puts the script in a reasonable category folder. A lot of rubies could be better organized. Honestly i collected a certain amount of rubies, but after nice experiments i trash just as much, to not lost myself searching for a plugin when the work waits to be finished.. -
RE: Auto loading toolbars
@kyyu said:
Look at the plugin "Toggle Units": http://forums.sketchucation.com/viewtopic.php?t=11745
Their version is:state = tb.get_last_state > if(state == TB_NEVER_SHOWN) > tb.show > elsif (state == TB_VISIBLE) > tb.restore > end
But I am not really sure of the use of "restore"? The API saids "used to reposition the toolbar to its previous location". But I tried testing it (moving it and restarting SU, etc..), and don't really see what it is doing. Can anyone explain?
Hehe,
sorry but i'm not yet a ruby scripter. Thanks very much for the tip, it helped! -
RE: Volume axis
@tig said:
If you mean 'Center of Gravity' [CofG] then I already have a tool for this, which also gives the 6 Suspension-Points which are == the axes through the CofG...
Search the 'Plugins Index' for it...thanks TIG,
i'll try it out!! -
Volume axis
Hi,
long time ago i wrote a similar topic about a possible ruby script. This because i continue to like and use reference lines before i draw final shapes in my SU projects. The plugin should be able to place tree points (center of face a, volume center point and center of face b) plus a cline reference (axis) inside a given volume.Method 1: Selected: face a and b of a given volume
Method 2: Or, if no faces are being selected, but a group instead, the script should calculate the dominant length of the selected volume and set an appropriate axis which has not to lie on the main planes like x,y,z. Furthermore, if the volume owns a strange configurations, like for organic forms, the reference lines, points can be easily located outside the volume.Personally, i use to work with the 'building structure' plugin to get the cline axis feature, but i need intersection points too. Would be great to apply 'volume axis' when you need it.
Usage: I image such a tool could be useful while precise positioning and grabbing, moving roughly volumes around, using the axis as hook. Additionally, to give infos about the dominant axis of a volume. -
Auto loading toolbars
Hi to all,
i think we all love sketchup, with its great plugins. I would write rubies too, if i could, like i do for applescript.
I see a problem in how SU loads toolbar plugins: some show up at startup, some others not. So my first thought was to add some code snippeds to this rubies, to change things.
i tried with something like that: (but without result)tb = UI.toolbar("Name Toolbar") if tb.get_last_state == TB_VISIBLE UI.start_timer(0.1, false) { tb.restore } elsif tb.get_last_state == TB_NEVER_SHOWN tb.show end
another question arises in which context (e.g handler) or place (beginning or end) i've do embed such a code, if the code does what i like to think it does.
please help me generously, because I don't know much about ruby scripting. Thanks!SketchUp version: 8
Operating system: mac 10.6