🚨 Skimp | 25% Off until March 30 Buy Now

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
  • Unicode, UTF8 and Ruby

    19
    0 Szavazatok
    19 Hozzászólások
    3k Megtekintések
    TIGT
    file_found?(path) that fixes ascii in SUp Ruby path and unicode in returned filepath returning false negatives with 'FileTest.exist?(path)' - even with accented characters - is updated and moved here... http://forums.sketchucation.com/viewtopic.php?p=169225#p169225
  • File class chokes on Norwegian Characters :(

    8
    0 Szavazatok
    8 Hozzászólások
    943 Megtekintések
    TIGT
    I've updated my file_found?(path) code here http://forums.sketchucation.com/viewtopic.php?p=169225#p169225 ...
  • Animator.rb - Call for participation

    19
    0 Szavazatok
    19 Hozzászólások
    4k Megtekintések
    pilouP
    And Jim has made some crazzy animationstests
  • Web Dialogs with Google Gears

    12
    0 Szavazatok
    12 Hozzászólások
    512 Megtekintések
    V
    I think you could do what you are asking Chris, with a minor modification. You would need to have the user perform a prior install of a script to enable to communication with the web service, but then once it was installed, that is all they would need. From then on, all scripts could be downloaded, and managed at run time from the database. In that you could store the scripts as either simple strings, and pass them to the ruby engine at run time to be executed, or maybe you could even store them as blobs in the DB and then execute them as a full script. I am not sure about the blob idea, in theory it could work, but in practice there might be hiccups along the way....but the managing them as simple strings that get passed around should work. As I go through this exercise over the next few weeks / months, I will keep you posted. If anyone out there wants to play a little and be a part of this, by all means, let me know... there is more than enough work to go around Obviously my catalog specific stuff I wouldn't be open to sharing, but anything generic like methods supporting gears, and or dynamic script loading from the db would be awesome to give back.
  • Using the SDK?

    14
    0 Szavazatok
    14 Hozzászólások
    867 Megtekintések
    Chris FullmerC
    Oh good, I think that is a good idea. It does sound like you need to be working in Ruby. Feel free to start a new thread if you get stuck. I've probably said it before, but I'm saying it again: I've written two tutorials on getting started with Ruby. I made them because getting started writing ruby was a frustrating process for me. So I'm hoping this will get people started easier. #1 Getting Started Writing a Full Script Chris
  • Mirror tool

    4
    0 Szavazatok
    4 Hozzászólások
    435 Megtekintések
    CadFatherC
    Hi TIG, that is true - i was thinking it would be fab not having to turn into 3d view to do it.. Takesh, thanks for clarifying - i wonder if the script 'knows' the view plane, perhaps it would behave in '2d mode'
  • Can i lock the toolbar?

    4
    0 Szavazatok
    4 Hozzászólások
    348 Megtekintések
    TIGT
    http://forums.sketchucation.com/viewtopic.php?p=159685#p159685 has a PC based registry hack to save and reload toolbars... It works - I use it. You need to edit some of the example files for v7; it works in Vista too... You could also change it to only save toolbar stuff...
  • Adding Item To Sub-Menu?

    2
    0 Szavazatok
    2 Hozzászólások
    207 Megtekintések
    Chris FullmerC
    http://code.google.com/apis/sketchup/docs/ourdoc/menu.html#add_submenu plugins_menu = UI.menu("Plugins") submenu = plugins_menu.add_submenu("Test") submenu.add_item("Plugin Name") { plugin_method } That should do the trick. It gets a little trickier if you want to multiple different plugins to the same sub-menu, but its possible. I use a global variable, but Jim showed me a way to do it without the global. Chris
  • Question/Request - Is there a way to Filter Layers' ...

    5
    0 Szavazatok
    5 Hozzászólások
    291 Megtekintések
    pilouP
    Seems Didier Bur has made a big plug about that Layers Manager
  • Simple Loft tool from Chris Fullmer

    4
    0 Szavazatok
    4 Hozzászólások
    793 Megtekintések
    pilouP
    another video
  • Odd results from Soap Skin Bubble

    19
    0 Szavazatok
    19 Hozzászólások
    2k Megtekintések
    ToboboT
    Thank you Pilou. It is a complex shape and to get the curves and presures you need to divide it up. maybe I should invest in Sub/smooth.
  • Camera As an Object

    31
    0 Szavazatok
    31 Hozzászólások
    2k Megtekintések
    halroachH
    It would even be nicer if the 'render area' which is defined in maxwell render would be preserved in the different cameras from film and stage... I think we could definitely use a new and easier to use film and stage plugin!
  • Plugins Idea- multiple offsets

    3
    0 Szavazatok
    3 Hozzászólások
    2k Megtekintések
    N
    thanks
  • Weld or Stitcher doesn't work

    5
    0 Szavazatok
    5 Hozzászólások
    765 Megtekintések
    pilouP
    For these 2 lines yes, but not for all [image: file.php?id=29722]
  • Ideas of modelling tools for Sketchup

    5
    0 Szavazatok
    5 Hozzászólások
    511 Megtekintések
    GaieusG
    @honoluludesktop said: Is "MOI" a solid modeler? The one I am familiar with has the ability to merge or subtract volumes. My guess is that SU could never do that as long it is a surface modeler. I'm not sure if I misunderstand what you're asking but BoolTools by Whaat does merge and subtract operations.
  • Standardizing all plugin appearance

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    majidM
    @chris fullmer said: It would be best if it was implemented by Google ok Chris, so the question is "how we could aware Google from our request? (in fact awaring @last team)
  • Can someone may help with that?? (problem Solved ...Thanks)

    6
    0 Szavazatok
    6 Hozzászólások
    747 Megtekintések
    N
    I found out the problems! I open the rb files and noticed that the firefox saved the HTML code as RB file... thats why all the plugins contained suddenly HTML code.... Thanks alot anyway, Nankyo.
  • Geometric centre

    6
    0 Szavazatok
    6 Hozzászólások
    324 Megtekintések
    CadFatherC
    and i even do searches!
  • What tools can help to debug?

    5
    0 Szavazatok
    5 Hozzászólások
    368 Megtekintések
    D
    @jim said: Hi Alain, pecan created a Windows debugger for SketchUp. See this post for information. Welcome to the forums. We have a Ruby Forum dedicated to Ruby/plugins discussons if you have any further questions - everyone here is friendly and helpful. Thank you very much. Straight I'm going to try and have a first look around of your forum
  • Objets controlled by a webpage

    16
    0 Szavazatok
    16 Hozzászólások
    3k Megtekintések
    J
    Hi Eric, The example you cited from the SketchUp Blog has everything you need. In the html of the WebDialog there is a button: <input type="button" onclick="callRuby('pull_selection_count')" value="Refresh"> onclick is an event that is fired when the button is clicked. When the button is clicked, the Javascript function named callRuby is executed. The string value 'pull_selection_count' is passed to the callRuby function. // Javascript in the html which defines the callRuby function used by onclick. function callRuby(actionName) { query = 'skp;get_data@' + actionName; window.location.href = query; } callRuby shows how to pass a value from the WebDialog to the SketchUp plugin that created the dialog. The Ruby script needs a callback named 'get_data'. window.location = 'skp:get_data@' + data; skp: - not sure precisely what this does but is required for the callback, get_data - the name of the call back in the ruby script, defined using add_action_callback('callbackname') { ... } @ - Optional: If you need to pass values to the call back, you need this delimiter. String concatenation in Javascript. data - a Javascript String. # The ruby part my_dialog.add_action_callback("get_data") do |web_dialog, action_name| UI.messagebox("Ruby says; Your javascript has asked for " + action_name.to_s) end The Ruby variable action_name get the value of the Javascript variable data. Hope that helps a little.

Advertisement