FredoBend | Powerful new bending tool for SketchUp Download

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
  • Writing a config or temp file in Plugins folder

    20
    0 Szavazatok
    20 Hozzászólások
    1k Megtekintések
    N
    For windows %appdata% ?
  • Alpha in Sketcup::Color

    6
    0 Szavazatok
    6 Hozzászólások
    714 Megtekintések
    TIGT
    The 'draw' colors are OpenGL standard colors only and seem unconnected to the model.materials - so transparency is not available to them anyway. I think that making the color 'red' say [0,0,0] in the model doesn't affect the color 'red' used in the 'draw' methods. A 'color' has always has an 'alpha' value [but it was never used!]. I think that the 'A' transparency in color [R,G,B,A] is a hangover from a much earlier SUp version where it was planned that you applied a 'color' to a face - so you would then need aplha 'A' for its transparency... BUT when 'materials' [allowing texture-images etc] were introduced they contained the transparency property and thereafter the 'color' only needed to be in RGB. So if you add a value for alpha 'A' to a color it is just ignored in its rendering but remembered in its values: but if you add no value it defaults to 255. The API notes say, "color.alpha=i - NOTE: Though documented historically in the Ruby API, this method has never been implemented." Here's the rub... v7. Sketchup::Color.new('white') Color(255, 255, 255, 255) printf("%#x\n", Sketchup::Color.new('white')) 0xffffff Sketchup::Color.new('white').to_a [255, 255, 255, 255] Sketchup::Color.new('white')**.to_i** 16777215 <<<<<<<<<<<<<<<<<<<<< NOTE Sketchup::Color.new(255, 255, 255) Color(255, 255, 255, 255) Sketchup::Color.new(255, 255, 255, 255) Color(255, 255, 255, 255) Sketchup::Color.new(255, 255, 255, 123) Color(255, 255, 255, 123) printf("%#x\n", **16777215**) <<<<<<<<<<<<<<<<<<<<< NOTE 0xffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255)) <<<<<<<<<<< NOTE 0xffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255, 255)) 0xffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255, **123**)) 0xffffff Sketchup::Color.new(255, 255, 255, 123).to_i 16777215 <<<<<<<<<<<<<<<<<<<<< NOTE [the unused alpha is ignored in the i/hex value] v8. Sketchup::Color.new('white') Color(255, 255, 255, 255) printf("%#x\n", Sketchup::Color.new('white')) 0xffffffff Sketchup::Color.new('white').to_a [255, 255, 255, 255] Sketchup::Color.new('white')**.to_i** 4294967295 <<<<<<<<<<<<<<<<<<<<< NOTE Sketchup::Color.new(255, 255, 255) Color(255, 255, 255, 255) Sketchup::Color.new(255, 255, 255, 123) Color(255, 255, 255, 123) printf("%#x\n", **4294967295**) <<<<<<<<<<<<<<<<<<<<< NOTE 0xffffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255)) <<<<<<<<<< NOTE 0xffffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255, 255)) 0xffffffff printf("%#x\n", Sketchup::Color.new(255, 255, 255, **123**)) 0xffffffff Sketchup::Color.new(255, 255, 255, 123).to_i 4294967295 <<<<<<<<<<<<<<<<<<<<< NOTE [AGAIN the unused alpha is ignored in the i/hex value] The 'integer value' of the color is being returned as a different value between v7 and v8 BUT the alpha is actually ignored in BOTH versions - so the alpha issue is therefore a red-herring. In v8 it is now a Bignum so face.material=0xffffffff fails - whereas in v7 it's a [ruby:3hoxppyu]Fixnum[/ruby:3hoxppyu] so [ruby:3hoxppyu]face.material=0xffffff[/ruby:3hoxppyu] works ! Somebody broke 'Color'... I'll lodge a v8 bug-report...
  • Painting a material in a 3D view

    17
    0 Szavazatok
    17 Hozzászólások
    1k Megtekintések
    Al HartA
    I'll have to look a little closer at the video. (I just looked at it, but I might have to watch harder.) I was quite impressed by the Street View stuff at the Base Camp, but as I remember it, he had to apply the street view texture separately to each face on the building he had created. And he had to stretch and dirstort the image to match the face - so it wasn't an automatic process (or am I missing something @unknownuser said: @unknownuser said: Does PhotoMatch, or 3D street view, or whatever, already wrap an image onto surfaces Is that I said second post See video from 0. 45 minutes and following Also, when you use PhotoMatch for a texture, does it then get shaded? If so I will need to save an unshaded image from SketchUp. (I believe I can do this by turning the sun on for shading, setting Light intensity to 0 and Dark intensity to 100)
  • WebDialog (Mac) - style.visibility in SU6

    8
    0 Szavazatok
    8 Hozzászólások
    795 Megtekintések
    T
    @thomthom said: with your original code, did you try a typeof test of the flag? just to see what it came across as? I am not JS expert, so I didn't even know that 'typeof' exists . Will check the old code. @thomthom said: did you try without semi-colon? Yep. I didn't help.
  • Drawing real time in sketchup

    3
    0 Szavazatok
    3 Hozzászólások
    507 Megtekintések
    Y
    Thanks Chris..
  • Coplanar surface tolerance

    8
    0 Szavazatok
    8 Hozzászólások
    1k Megtekintések
    Chris FullmerC
    @thomthom said: :idea: +1 !
  • Help with Acad generated Dxf file

    8
    0 Szavazatok
    8 Hozzászólások
    585 Megtekintések
    honoluludesktopH
    Well, I spent the day looking at the way various applications read and write dxf files, as well as the differences between Acad versions. My own Cad program outputs a dxf that is no longer compliant with Acad v 11 (maybe not even since 2000). But fortunately, it hasn't affected my work. I have been writing a SU plugin to modify my Cad2Dxf output in order to improve its performance. As long as I was doing this, I thought I might be able to post a DxfIn for SU-free users, but have discovered that there are too many considerations, requiring rewriting my code to accomplish even a very basic version of this. Good thing for me that my Cad2Dxf is easy to understand. Thanks for the support everyone, hopefully I will finish soon:-)
  • Temporary message box

    7
    0 Szavazatok
    7 Hozzászólások
    555 Megtekintések
    P
    In the webdialog use this code: <body onLoad="setTimeout('self.close()',5000)"> with 5000 being the amount of milliseconds that the message is shown Haven't tried but should work
  • Transformation scale

    2
    0 Szavazatok
    2 Hozzászólások
    360 Megtekintések
    P
    ok i've found it here: http://forums.sketchucation.com/viewtopic.php?f=180&t=24947&p=213942 use .transform! instead of .transformation .transform adds the specified transformation to the already existing one .transformation replaces the current transformation (like in: will put the object back to 0,0,0)
  • Camera - FOV = H unchecked

    6
    0 Szavazatok
    6 Hozzászólások
    634 Megtekintések
    thomthomT
    Also throw in a mention of the camera shifting that occur at times when using camera.aspect_ratio...
  • The case of the missing data

    5
    0 Szavazatok
    5 Hozzászólások
    330 Megtekintések
    honoluludesktopH
    Thanks, they both work:-) Ended up fixing my app in a couple of places. Wounder how I mucked the data:-(
  • SKSocket connected with my socket server

    4
    0 Szavazatok
    4 Hozzászólások
    895 Megtekintések
    M
    Hello, Thanks for your answer and your way to send datas through a Webdialog using ajax. For the SKSocket class, I have asked to Scott (a Googler) at the Basecamp and the response is this class as been developed for an internal test but it's not fully implemented and fully working so don't use it if you want to be sure your code will run correctly. Regarding my needs : Now I just want to handles events from another windows software directly inside Ruby so I'll open another topic in the forum.
  • SU8 - new api

    16
    0 Szavazatok
    16 Hozzászólások
    1k Megtekintések
    thomthomT
    The release notes is all I've found... which even appear to be incorrect when it comes to the selection observers.
  • Default save as v7?

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    TIGT
    If you are working in a model that's been opened in 'v8' then whenever you 'save' it will be as in the 'v8' format. Whenever you use 'save_as' it will be saved in the 'selected format' at the point you press OK: this defaults to 'v8' format every time: so you have to change it manually each time to another earlier version format - e.g. 'v7'... Sorry, but your "dream" hasn't / won't come true...
  • How to call method added to SU?

    9
    0 Szavazatok
    9 Hozzászólások
    680 Megtekintések
    honoluludesktopH
    For other beginning ruby writers like myself: model = Sketchup.active_model @entities = model.active_entities @selection = model.selection . . . # Group entities inserted. sel = @selection sel_ents = sel.to_a first_entity = sel_ents[0] while sel_ents.length > 0 if ((sel_ents[0].is_a? Sketchup;;Edge) or (sel_ents[0].is_a? Sketchup;;Face)) and sel_ents[0] == first_entity new_group = sel_ents[0].all_connected sel_ents = sel_ents - new_group group = @entities.add_group(new_group) else sel_ents = sel_ents - [sel_ents[0]] end end model.commit_operation C&C is welcomed:-)
  • Mac32API.so ?

    5
    0 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    J
    Here's some related info: http://forums.sketchucation.com/viewtopic.php?p=66969#p66969
  • Page &quot;Include in animation&quot; flags

    4
    0 Szavazatok
    4 Hozzászólások
    645 Megtekintések
    thomthomT
    Oh - so there is a difference between label and name... Hurray for documentation...
  • Pack Up Multiple Files into a Single .rb File?

    8
    0 Szavazatok
    8 Hozzászólások
    668 Megtekintések
    tbdT
    I did something like that in timetrack.rb - here is the uncompress part zap_files = <<EOL {"tt_stop_l.png"=>"... removed ...", "tt_go_s.png"=>"... removed ..."} EOL if not FileTest.exists?("tt_stop_l.png") eval(zap_files).each_pair do |x,y| File.open(File.join(Sketchup.find_support_file("Plugins"), x),"wb") do |f| f.write y.unpack("m") end end end
  • Windows: Moving Floating Toolbars

    20
    0 Szavazatok
    20 Hozzászólások
    3k Megtekintések
    J
    One problem is that some of the floating toolbars do not remember their shape after re-starting Sketchup. Using the new "Save Toolbar Positions" does not help, and I haven't figured how to resize them.
  • Invoke draw(view) method on tool startup

    5
    0 Szavazatok
    5 Hozzászólások
    318 Megtekintések
    T
    @thomthom said: What I end up doing is: > def activate > Sketchup.active_model.active_view.invalidate > end > Thanks. It has done the trick. I've been trying def activate draw(Sketchup.active_model.active_view) end , but it has not worked.

Advertisement