Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Include page in animation

    6
    0 Szavazatok
    6 Hozzászólások
    413 Megtekintések
    jiminy-billy-bobJ
    Ho I didn't see that, thanks a lot!
  • Ruby panel on/off

    9
    0 Szavazatok
    9 Hozzászólások
    707 Megtekintések
    G
    @tt_su said: hm.. that looks like a SCF redirection error.... Redirect bug corrected. If the error message is cached, a browser cache-erase might be necessary.
  • Speed up

    6
    0 Szavazatok
    6 Hozzászólások
    628 Megtekintések
    tt_suT
    Sorry, the official name is "SketchUp C API". "SLAPI" was just an acronym thrown around before I begun which has stuck with me.
  • Help needed with sin, cos & co...

    3
    0 Szavazatok
    3 Hozzászólások
    338 Megtekintések
    artmusicstudioA
    hi tig, great , good formulas for further studies. my code works now, by the way. just to precise my informations: i understand, that "atan" only works for right-angled triangles (one angle = 90 degrees), but: is the sum of angles not 180 degrees in all triangles? so the criterium is the right angle, not the sum of 180 °, right ? "jumbling up radians and degrees [again]" _:) yes, i still sometimes mix it somehow, but i try to keep all calculaction in skp-origin and only to display in the console in degrees. seems to work now! _ so thanx again, all your tips makes my learning much easier! btw.: when a beta of the ruby is done and i made my tests, do you think, you and maybe somebody else , too, could check it on his machine? i have lots of rubys in my sketchup, so the compatibility here is ok, but who knows...!!! thanx stan
  • Transformation (copy) by vector and distance ?

    10
    0 Szavazatok
    10 Hozzászólások
    735 Megtekintések
    TIGT
    group2 = group.copy group2 = group.move!(vector) group2 = group.copy group2.move!(vector) Should leave group where it was ???
  • Naming of new colours ??

    3
    0 Szavazatok
    3 Hozzászólások
    262 Megtekintések
    artmusicstudioA
    hi tig, understood, works perfect ! model = Sketchup.active_model materials = model.materials names = ["zf_carrier", "zf_step", "zf_landing", "zf_fill", "zf_wange", "zf_pfosten", "zf_handlauf", "zf_bars", "zf_topstift", "zf_railplate"] color_val = [[112,128,144],[200,220,200],[230,230,230],[100,120,100],[255,0,0],[0,255,0],[0,20,255],[10,10,10],[60,180,180],[0,206,209]] zf_c = 10 for col in 0..zf_c-1 if @pref2 == "no" #option for the user for coloured screen output (in my ruby-preferences) material_name = names[col] unless material = materials[material_name] material = materials.add(material_name) end material.color = Sketchup;;Color.new color_val[col] elsif @pref2 == "yes" #option for the user for monochrome screen (in my ruby-preferences) material_name = names[col] unless material = materials[material_name] material = materials.add(material_name) end material.color = Sketchup;;Color.new(230,230,230) end end thanx stan
  • Question about "puts" "Kernel.puts" "Kernel::puts"

    4
    0 Szavazatok
    4 Hozzászólások
    816 Megtekintések
    Dan RathbunD
    Functionally, there is no difference. BUT.. technically, Kernel::puts(), is a COPY of the instance edition of puts() that got mixed into Object, and will get inherited by ALL other classes and modules. The Ruby Core Team wrote the Kernel module as both a Mixin and a Library module. They used the module_function() method, so that all the library instance methods (that get mixin in using include,) had module method copies made. These copies can only be called by qualifying them with the Kernel module name. [ruby:1c8jtequ]Kernel.module_eval "class<<self; method(:puts).inspect; end;" >> #<Method: Class(Kernel)#puts> Kernel.module_eval "method(:puts).inspect;" %(#000000)[>> #<Method: Kernel.puts>]
  • Run Validity Check

    8
    0 Szavazatok
    8 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    Thank you, Thomas!
  • Access database files

    11
    0 Szavazatok
    11 Hozzászólások
    6k Megtekintések
    Dan RathbunD
    I stumbled onto this download at Microsoft (looking for something else.) Microsoft SQL Server ODBC Driver 1.0 for Linux The Details say it's for 64bit RedHat 5/6. (But maybe if your Linux uses the same Core..)
  • Unfold tool from Jim Foltz

    11
    0 Szavazatok
    11 Hozzászólások
    5k Megtekintések
    BoxB
    Two posts above you Tig has given you the link.
  • How to get Surface (Group of faces) via Ruby API?

    3
    0 Szavazatok
    3 Hozzászólások
    450 Megtekintések
    fuzzybroF
    @tt_su said: These snippets should work: http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=41211#p365380 Oh, cool! Thanks a lot!
  • Setting the save path for files ???

    5
    0 Szavazatok
    5 Hozzászólások
    654 Megtekintések
    artmusicstudioA
    hi dan, that's exactly, what i ment. i want to restore the user file path after my ruby finished it's job. perfect! thank you very much, also for the other system variables, very useful for future development. stan
  • Soften coplanar ?

    22
    0 Szavazatok
    22 Hozzászólások
    3k Megtekintések
    jolranJ
    entities.fill_from_mesh(mesh, true, 2 | 8) is working nicelly, but a small gotcha.. %(#FF0000)[mesh.add_polygon(1,2,3) mesh.add_polygon(2,3,4)] Does gives hard edges, as expected. %(#FF0000)[mesh.add_polygon(1,-2,3) mesh.add_polygon(-2,3,4)] gives hard soft edge between Points 2, as expected. but so does this: %(#FF0000)[mesh.add_polygon(1,2,3) mesh.add_polygon(-2,3,4)] or %(#FF0000)[mesh.add_polygon(1,-2,3) mesh.add_polygon(2,3,4)] So I'm starting to see some trouble with this method. To be able to stear edge visibility one need to use 2 Points in comparison. For ex a Collection of edge.start and end positions. For a triangulated quad this works but not if the face has innerloops, Or faces where triangulation is splitting the face without hitting innerloops. Was to fast here.. The docs actually explains this behavior, "value of [-1, 2, 3] indicates that the edge from 1 to 2 is hidden"
  • Help adding arc in ruby script

    10
    0 Szavazatok
    10 Hozzászólások
    3k Megtekintések
    artmusicstudioA
    hi tig, ok, let's play with some formulas thanx stan
  • Asigning colours to elements

    5
    0 Szavazatok
    5 Hozzászólások
    375 Megtekintések
    artmusicstudioA
    hi dan, thanx, next step is done! this one works: @c_step = Sketchup;;Color.new(30,125,180) group.entities.grep(Sketchup;;Face).each{|f| f.material=@c_step} stan
  • Error: #&lt;NameError: undefined local variable or method

    3
    0 Szavazatok
    3 Hozzászólások
    1k Megtekintések
    M
    Thank you, Dan, it works OK now!
  • Communication best practice

    9
    0 Szavazatok
    9 Hozzászólások
    507 Megtekintések
    tt_suT
    Yes, you must make the server dish out JSONP to comply with same-origin policy.
  • Volumetric visualization

    4
    0 Szavazatok
    4 Hozzászólások
    471 Megtekintések
    M
    Thank's to all, problem solved!
  • Colored faces

    15
    0 Szavazatok
    15 Hozzászólások
    949 Megtekintések
    pingpinkP
    Thank You again Dan and TIG ! . I understand an idea now.
  • Model.select_tool &quot;PaintTool&quot;

    5
    0 Szavazatok
    5 Hozzászólások
    469 Megtekintések
    Dan RathbunD
    @tomasz, Looks like a custom paint tool using the same cursor is in order...

Advertisement