ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Using the Registry - Any Gotchas?

    5
    0 Votes
    5 Posts
    273 Views
    J
    Thanks Adam, I was actually using the following: str.gsub!(/\\/, '\\\\') But I think simply changing it to '/' is a better solution, and will modify inputbox.rb I suppose it's possible for someone to want to use \ for some other string, though. I'm also escaping double-quotes: str.gsub!(/"/, '\"') Thanks.
  • Swap between 2 lines

    12
    0 Votes
    12 Posts
    646 Views
    A
    No, but SWEEP 2 RAILS plugin will be very usefull for me!
  • Please install progressbar.rb

    11
    0 Votes
    11 Posts
    7k Views
    Chris FullmerC
    Hehe, yeah my scripts aren't nice enough to check if you have progressbar first. They just crash. Chris
  • Loft questions

    26
    0 Votes
    26 Posts
    4k Views
    pilouP
    @unknownuser said: in what program are you making those loft images? Moment of Inspiration (Moi) (just image colorisation is made in 2D prog for fun & variety I don't believe that SU can actually makes the same than Zbrush! There are 8 000 000 polys in normal way at level 7 of subdivision ! And it just one object! So when you will make many objects in the same time SU will freeze before
  • Checkerboard painting ? (or selection)

    18
    0 Votes
    18 Posts
    3k Views
    A
    @unknownuser said: Not yet released but you can try this one lol, come on, it was already said that Random Painter isnt able to create a checkbox pattern, since, of course, its randon
  • Inside-out transformation?

    6
    0 Votes
    6 Posts
    244 Views
    A
    I'm pretty sure the only way to effect an instance without effecting the definition is just the Transform. But that will just effect the instance as a whole. You can't reverse the faces (I don't think) without interacting with the actual geometry, thus changing the definition.
  • Make Curve...

    6
    0 Votes
    6 Posts
    217 Views
    Chris FullmerC
    Ahh weld, of course, good thinking Remus. I was thinking of a script that would automatically find all arc and turn them into true SketchUp arcs. Overkill. Weld, of course, Chris
  • Strange error when setting component axes

    8
    0 Votes
    8 Posts
    196 Views
    Chris FullmerC
    Yeah, I tried it and I also get the errors. I should have tried sooner. There are other tools that send errors to the ruby console too. Oops! So I would say it is woorking as expected. Chris
  • .get_front_UVQ return unexpected results

    5
    0 Votes
    5 Posts
    298 Views
    thomthomT
    @adamb said: But perhaps a better way of doing this is to use a PolyMesh and just explicitly set UVs. Never used Polygon Meshes before. So to map existing faces I'd convert them to PolyMeshes?
  • Rotation interface with Ruby extension -- possible?

    6
    0 Votes
    6 Posts
    317 Views
    A
    @chris fullmer said: I would imagine that it is possible. Are you interested in learning Ruby? This is a great place to learn it. Chris I did a little Ruby tutorial a few years ago, but it kept crashing on me at a certain point. So I guess I know the reeeaal basics. (ooooooor.. could quickly remember them if I seem em again!) If you could give me some ideas (like methods, functions, etc.) of how I can make this thing work with a Ruby plugin, that'd be great.
  • Control Projected Textures via the API?

    2
    0 Votes
    2 Posts
    208 Views
    T
    Google seems to be deaf to our requests. There is no built-in method for recognising if a face has a projected texture or not. It can be done through writing a texture to a Texturewriter of especially created temporary face with no distortion and then writing a texture of a face being examined. If the number of textures in TW increases it means the face has a photomatched texture. I have seen a texturewritter2 in the SU SDK, but it is not reflected in Ruby. I haven't tried to control a position of a projected texture, but I am afraid it can be pretty hard. Mostly because we have no sample code that would show how to do basic modification. Tomasz
  • Su slow to open

    12
    0 Votes
    12 Posts
    424 Views
    R
    You should be ok as long as you dont add all of them
  • Observer Usage

    4
    0 Votes
    4 Posts
    203 Views
    Chris FullmerC
    Hanks, lots of us are going through it. There is a thread at the top of this forum called API typos and something or another. If you have suggestions for the API, put it in that thread. The Google guys who write the API and SketchUp Ruby watch that thread and incorporate the suggestions and typos that are posted there. If it was confusing to you, it probably will be for someone else! Chris
  • It is about installing plug-in

    6
    0 Votes
    6 Posts
    175 Views
    Chris FullmerC
    Well, to give credit where credit is due, Great job Gaieus! and a big thank you! Chris
  • Edges problem

    6
    0 Votes
    6 Posts
    259 Views
    J
    Is there maybe a way to divide an object into triangles? because the add_face instruction can draw traingles.. is there a function for this? thanks
  • Can something cancel observer events?

    8
    0 Votes
    8 Posts
    319 Views
    thomthomT
    I was going to look into the Transaction events. I've been avoiding them so far due to the warming in the docs. And you answered a question I had actually; "can you do stuff in onTransactionCommit?" Another thing I tried was to wrap the transformation change into a transparent start_operation. Tried start_operation 'TTDC - Change', true, false, true and start_operation 'TTDC - Change', true, true, false and start_operation 'TTDC - Change', true, true, true in hopes that would prevent the cancellation of events. But no luck there.
  • OpenURL and/or ShellExecute on Vista

    8
    0 Votes
    8 Posts
    1k Views
    Al HartA
    I'll have to look at my other Vista machines and see if they have open as a default. Perhaps a Photo program I downloaded changed the settings. (Or I have read that the setting may depend on your default Internet Browser) In Googleing around I see where others are having similar problems with Shell Execute in Vista. I need a solution which will work for lots of users everywhere, with lots of different Windows settings. What I did was to create a function to call UI.openURL, and then if it fails use ShellExecute with the NULL verb. This seems to work. (I'm not sure why I call openURL first - just to be friendly to the SketchUp Ruby API I guess) def launch_file(sfile) trace("Launch; %s", sfile) # Try SketchUp call first if (UI.openURL(sfile)) return end#if # try shell_execute if openURL fails shell_execute(sfile) require 'Win32API' shell = Win32API.new("shell32","ShellExecute", ['L','P','P','P','P','L'], 'L' ) #shell.call(handle, verb, file, params, folder, showCmd) iret = shell.call(0, 0, sfile, 0, 0, 1) if (iret == 42) return true end#if do_error("Cannot Open file; '%s' - return value; %s", sfile, iret) return(false) end#def
  • Ruby equivalent for edit/delete guides?

    3
    0 Votes
    3 Posts
    130 Views
    TIGT
    I've made various - search for 'ConsDeleteContext.rb' as one set for a context-menu right-click that differentiate between points and lines and all or just in active context etc... 'Guides' are often referred to as 'Construction' Lines/Points... their 'old name'... Search for those too...
  • Frustrated with rubies

    47
    0 Votes
    47 Posts
    4k Views
    R
    @baz said: @unknownuser said: Have you looked into Organizer? Thanks Rick, tho it seems a bit complicated for my poor brain. I can see myself getting in lots of trouble trying to organise subfolders, especially considering the apparent dependency of various rubies on each other. baz Two things: Organizer can do a simple test and notify you if you move any required files, letting you know you need to put them back in the Plugins folder. Also, creating a backup of your Plugins folder prior to using Organizer can save you some headaches. I do offer support for all my scripts, so if you have questions, just ask
  • Catching Console errors upon crash

    6
    0 Votes
    6 Posts
    191 Views
    thomthomT
    It's odd that it happens on the second File->New as in the first one, nothing is done. And yes, I do have quite a few observers and references. Though, I thought I was resetting everything onNewModel. I think I'll have to release a developers alpha, see if anyone can spot the culprit in my code. What I'm building is a plugin that allows cutout components to also cut through an opposite faced face. It does taht by creating a new invisible cutout. That's the simple stuff. The complicated stuff is making sure the extra cutout syncs with move,rotate,edits etc. That required allot more work than expected. Especially since I ran into so many bugs in the SU Ruby API requiring workaround upon workaround.

Advertisement