Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Script for Report on Name and Amount of Components

    6
    0 Votes
    6 Posts
    521 Views
    TIGT
    @unknownuser said: already had v1.6. works prety good thanks That v1.6 was ComponentReporter+ this is ComponentReporter++ (v1.1) that does slightly different things... It puts the reports in the same folder as the model... You could hack a UI.openpanel() to get the folder from a picked file in it ? I've tried to write it so it's reasonably self-evident - try small tweaks to see if you can do what you want... .
  • Slice and erase

    9
    0 Votes
    9 Posts
    1k Views
    O
    thank you Jeff, and thank you all that tried to help me, and so I'll wait for a new ruby angel...
  • A plug-in to draw baseboard or wall base?

    2
    0 Votes
    2 Posts
    898 Views
    david_hD
    You need WHAAT's Amazing, Collossal Totally Stupendous Profile Builder!!! check it out here
  • Clear PMPI

    4
    0 Votes
    4 Posts
    499 Views
    kenK
    Thanks Remus and Xrok1. Ken
  • Keep a tool running in the background?

    13
    0 Votes
    13 Posts
    987 Views
    fredo6F
    no clue. Never tried actually, but I guess it should help. So you should try it both ways to see what happens. I use myself another technique to cascade tools, because I need more control. Fredo
  • [Code] Tool ID Constants - Rev. 2

    16
    0 Votes
    16 Posts
    4k Views
    thomthomT
    When I tried tested some of the tool IDs and CMD_ constants they where identical on Mac and PC.
  • OnActiveToolChanged - What RubyTool is it?

    9
    0 Votes
    9 Posts
    695 Views
    thomthomT
    @matt666 said: You can identify active tool by its ID. Each tool has its own ID. You can't know its name. Try a look here, I played with tool IDs... But is the id the same across sessions and computers? From my other thread on IDs; the ID of even the native tools might not be consistent. So I have4 mu doubts that ruby tools will have consistent IDs
  • Observers !

    20
    0 Votes
    20 Posts
    4k Views
    H
    @unknownuser said: At least if you have AutoLisp experience exporting the xdata in a usable format for Ruby would be relatively straightforward... Thanks for your thoughts about extending such interface. I had thought about this for myself, but I have to make steps one after another. So first I want to get the structure in place again and then I can thought about adding/transporting more Info. The AutoLisp experience is not the problem, since I am a nearly full-time autolisp-developer and I am really used to do anything with ExtendedEntityData. We have logical propertys and geometric propertys stored in EED and even small chunks of Lisp-code stored there, which gets fired under certain events. So I can imagine I could do similar things in the future with ruby.
  • Fixing Camera Aspect Ratio

    9
    0 Votes
    9 Posts
    843 Views
    Dave RD
    I think I got them with Skindigo.
  • Quirky draw method activity

    10
    0 Votes
    10 Posts
    717 Views
    Chris FullmerC
    EDIT: Issue resolved in the 2 posts below this. Skip this post unless you're really interested in boring yourself to death. OK, its morning and I'm back! @line_positions is an array of points on the x axis. Each point acts as the base starting point for each vertical grid line. So first the method checks to see if @line_positions has been populated yet. If it has, then it takes each value from that array and calls it p1 and then adds an amount to the y of 100 and calls that p1, then draws the line from p1 (the base) to p2, the top of the vertical line. The 5.times do portion is drawing the horizontal lines by taking the first and last points on the horizontal boundaries. Then adds 20 to each and draws a line. Does that 5 times, and those are the horizontal grid lines. To explain better, @line_positions is defined once when the user hits enter. Its values do not change at all normally. To test this, I added a puts @line_positions[0] statement in my onKeyUp method. So everytime I press a key, it puts the first @line_positions position. And sure enough, when I disable the draw method, that value stays the same. But once I enable the draw method, that value changes everytime the screen is redrawn. So it appears that somehow something that I have in the draw method is changing the @line_positions, not just getting values from it. More specifically, when I comment out the 5.times portion (which is the part that draws the horizontal grids), then the method works as expected and does not change my @line_positions values. So I think it is something with how I have that written, but I can't see anything in there that should affect the @line_positions values. def draw( view ) if !@line_positions.empty? @line_positions.each do |e| p1 = e p2 = p1.clone p2[1] += 100 view.draw GL_LINES, p1, p2 end np1 = @line_positions[0] np2 = @line_positions.last puts "from draw " + @line_positions[0].y.to_f.to_s #5.times do # np1[1] = np1[1] + 20 # np2[1] = np2[1] + 20 # view.draw GL_LINES, np1, np2 #end end end All I can think is that is it possible that it thinks that since np1 points to @line_positions[0] when I change np1 it thinks I want the original @line_positions[0] value changed too and somehow sends the change back to that array? I'm a bit stumped with this one.... Chris
  • Store a hash as an value in an attribute dictionary

    6
    0 Votes
    6 Posts
    1k Views
    T
    @pout said: Todd, when i store the hash it does not give me an error. But when i return it it is always nil My point exactly! @pout said: If it was stored wouldn't it return me an error telling that it can not be displayed insteda of returning nil? In a perfect world, yes.
  • Window Proportions Question

    18
    0 Votes
    18 Posts
    2k Views
    M
    +1 for this cool program!
  • [code] ComponentDefinition-delete

    9
    0 Votes
    9 Posts
    3k Views
    TIGT
    AlexM has found the basis of doing this without a new method at all... model.start_operation("Delete Definition") definition.entities.erase_entities(definition.entities.to_a) model.commit_operation I'm removing my 'code' and rewriting ComponentInstance-add_entites.rb to suit...
  • All-new API with full access to all internal functions?

    6
    0 Votes
    6 Posts
    522 Views
    P
    i'VE BEEN PUNKED...
  • Position of a point

    4
    0 Votes
    4 Posts
    324 Views
    Chris FullmerC
    Excellent, glad it helped (and worked). I also just edited a minor typo in the example, but I'm sure you figured it out even with the typo, Chris
  • Need an example to munipulate a dynamic component with ruby

    9
    0 Votes
    9 Posts
    2k Views
    scottliningerS
    When you saved redsang.skp, did you File > Save As, or did you Right click > Save as? The File > Save As method is probably what happened. This isn't the same as saving sang as a standalone SKP. Try right clicking on red sang and "Save as" and then try the import. See if that works.
  • Film & Stage plugin

    23
    0 Votes
    23 Posts
    5k Views
    thomthomT
    Just found this thread: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=9321&p=145393 If you open the Ruby Console and type in Sketchup.send_action 10624 it opens a window which allows you to change SU's behaviour so it sets the AOV horizontally instead of vertically.
  • GL_TRIANGLES and COLOR

    2
    0 Votes
    2 Posts
    445 Views
    fredo6F
    Don't worry. This looks like a bug (or a feature?) of the API in SU6 and SU7. I never found any workaround. Why do you think the divider in Stretch happens to be black!? However, in 2D mode (view.draw2d), you can control the color. Fredo
  • Transforming multiple vertices simultaneously?

    15
    0 Votes
    15 Posts
    864 Views
    J
    Normally yes, but he wants to apply a different transformation to each vertex.
  • Cant find fredolib or freescale

    6
    0 Votes
    6 Posts
    2k Views
    Chris FullmerC
    Excellent, glad it worked. And thanks for the monitor solution. I fixed it by moving and pawning that old monitor situation off to a coleague who now has to deal with it. Chris

Advertisement