Mac User? | Join the Rayscaper Beta for Mac 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
  • Ruby scripting issues

    3
    0 Szavazatok
    3 Hozzászólások
    496 Megtekintések
    Dan RathbunD
    # First we pull in the standard API hooks. require 'sketchup.rb' require 'extensions.rb' Sketchup::require 'su_sandbox/GeometryHelpers' (1) They do not really "pull in the API hooks". (2) You only require scripts and libraries, if this script (which has the require statements,) are going to use what is defined in them. And your script uses nothing in those two files. (The files are located in the "Tools" sub-directory, of SketchUp program directory. They are not scrambled and can be read. Also everything defined in the "extensions.rb" file, is explained in the API dictionary under the SketchupExtensions class.) (3) require statements are always best located at the top of a file, since they should be dependencies. If they cannot be loaded, the rest of the script should not be run, because a LoadError exception will be raised.
  • Changes in 2015

    45
    0 Szavazatok
    45 Hozzászólások
    5k Megtekintések
    D
    I saved it as a componant and ... DefinitionList.load Timing Tests > SketchUp Version; 15.0.9349 > 0.033619; 0.033619 > 0.003637; 0.003637 > 0.003768; 0.003768 > 0.004126; 0.004126 > 0.003228; 0.003228 > 0.003331; 0.003331 > 0.003248; 0.003248 > 0.003292; 0.003292 > 0.003231; 0.003231 > 0.003322; 0.003322 > Average; 0.006480200000000001 prior to that I got DefinitionList.load Timing Tests > SketchUp Version; 15.0.9349 > 1.569674; 1.569674 > 1.604715; 1.604715 > 1.554494; 1.554494 > 1.546019; 1.546019 > 1.591651; 1.591651 > 1.560916; 1.560916 > 1.561827; 1.561827 > 1.580865; 1.580865 > 1.577112; 1.577112 > 1.575873; 1.575873 > Average; 1.5723146 john
  • Need a way to round up

    3
    0 Szavazatok
    3 Hozzászólások
    436 Megtekintések
    D
    Right on, thanks, forgot about that.
  • Draw parallel line, distance=11

    21
    0 Szavazatok
    21 Hozzászólások
    5k Megtekintések
    D
    Thanks
  • Script won't find face

    4
    0 Szavazatok
    4 Hozzászólások
    492 Megtekintések
    D
    Thank you, That worked.
  • Move points to a '3D grid'

    26
    0 Szavazatok
    26 Hozzászólások
    4k Megtekintések
    thomthomT
    This wasn't something I ever planned to publish. It was just a code snipped posted for anyone to grab.
  • Yosemite filter code...

    6
    0 Szavazatok
    6 Hozzászólások
    623 Megtekintések
    Dan RathbunD
    @driven said: can I PM you it, to have a look? Sure, John.
  • Rusty with Ruby. Import help needed.

    5
    0 Szavazatok
    5 Hozzászólások
    678 Megtekintések
    Dan RathbunD
    You'll need to make your own button images 16x16 and 24x24 The code will be near to: if Sketchup.version.to_i > 13 # no save as before v14 ! save_as_v8_cmd = UI;;Command.new("Save As v8") { model = Sketchup.active_model path = model.path if path.empty? if RUBY_PLATFORM !~ /(darwin)/i # MS Windows path = UI.savepanel( "Save Model As v8 skp...", "*.skp", "SketchUp Files (*.skp)|*.skp;||" ) else # Mac path = UI.savepanel( "Save Model As v8 skp...", "*.skp" ) end unless path.nil? # nil if dialog cancelled model.save( path, Sketchup;;Model;;VERSION_8 ) end else # use current filepath model.save( "", Sketchup;;Model;;VERSION_8 ) end } save_as_v8_cmd.small_icon= "your_icon_name_16.png" save_as_v8_cmd.large_icon= "your_icon_name_24.png" UI.menu("File").add_item save_as_v8_cmd # assume you've created a toolbar ref'd as my_toolbar; my_toolbar.add_item save_as_v8_cmd end
  • Change variable after certain number of loops

    14
    0 Szavazatok
    14 Hozzászólások
    1k Megtekintések
    jolranJ
    @unknownuser said: Thanks, I'm just trying to find a way not to have to keep pressing 'Ctrl & "A" then delete, every time I want to test a code. Ah, right! Understood. Well TT and Driven got the answers already. Another handy plugin is using Alex Ruby-code editor. You don't have to wrap code in Start Operation cause there's an inbuilt Play and Undo button. Very useful for testing loose code snippets. Copy and paste from Notepad for ex..
  • How to distribute my plugin

    6
    0 Szavazatok
    6 Hozzászólások
    700 Megtekintések
    W
    Thanks guys, I'll go ahead and post it here and wait a while and see what people say before submitting to the Extension Warehouse. Thanks again, Walter P.S. That 5 million euro thing was a joke, right? Coz I think all I got is 2 dollars and change.
  • Smooth Line after push/pull

    4
    0 Szavazatok
    4 Hozzászólások
    546 Megtekintések
    sdmitchS
    @ktkoh said: sdmitch I am trying to learn from you code. How is the smoothing only applied to the edges created by the add arc? It needs some English description if you will!! Keith I save the vertices, vrt1 and vrt2, at the beginning and end of the arc. Then I look at all the edges associated with those vertices and eliminate all that are not the proper length. This leaves me with a single edge that is softened.
  • TAO open source programming language for real-time ...

    2
    0 Szavazatok
    2 Hozzászólások
    565 Megtekintések
    pilouP
    Very amazing! [image: http://xlr.sourceforge.net/sites/default/files/logo.png] Official site! TaoDyne Documentation is fabulous! http://www.youtube.com/watch?v=Fvi29XAo4SI
  • Retreive world coords nested component InputPoint

    2
    0 Szavazatok
    2 Hozzászólások
    7k Megtekintések
    sdmitchS
    InputPoint returns the transformation, if any, for the face you clicked on. Simply apply that tranformation to the vertices of the face to get the real world coordinates. rwc = @ip.face.vertices.map{|v| v.position.transform(@ip.transformation)}
  • WebDialog particular html issue

    6
    0 Szavazatok
    6 Hozzászólások
    839 Megtekintések
    Dan RathbunD
    [off:2cqiik2n]I've suggested Gecko a number of times. Yes, each time I have to implement a WebDialog, knowing it will be a pain in the <bleep>,.. I put it off for as long as possible. I'd prefer for native dialogs that Qt worked inside SketchUp. I think that development and maintenance on WxWidgets has stalled.[/off:2cqiik2n]
  • Round front edge of

    5
    0 Szavazatok
    5 Hozzászólások
    694 Megtekintések
    D
    Thanks a lot for the replies. The code actually draws it the way I would draw it manually. Thanks!
  • How does material color multiplication works?

    7
    0 Szavazatok
    7 Hozzászólások
    2k Megtekintések
    tt_suT
    I would need the deltas, and know whether the material is HSL shifted or tinted - something the Ruby API doesn't expose right now. But we have an issue open to address that.
  • Avoid SketchUpBIM?

    3
    0 Szavazatok
    3 Hozzászólások
    536 Megtekintések
    KrisidiousK
    It's in my architecture list. I'll put in a warning.
  • No DLLS were Found in the Waterfall Procedure

    2
    0 Szavazatok
    2 Hozzászólások
    2k Megtekintések
    S
    Yep, just now ran into this after installing GoPro. This solution fixed it. Many Thanks !!!
  • Xml anyone?

    16
    0 Szavazatok
    16 Hozzászólások
    2k Megtekintések
    TIGT
    @jp2009 said: How do you stop Sketchucation from downloading XML documents? It keeps doing this? There's an issue with the recently updated PluginStore Extension when used in Chrome. Disable that extension under Settings, until it is fixed... Breaking news... v1.3 of that Extension was released today, it should fix the issue, so install that to update things, and those xml errors should be no more...
  • View.refresh behavior

    3
    0 Szavazatok
    3 Hozzászólások
    793 Megtekintések
    thomthomT
    For animations it's best to use the Animation class instead of using sleep() and forcing a screen refresh. http://www.sketchup.com/intl/en/developer/docs/ourdoc/animation

Advertisement