⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Web Dialogs with Google Gears

    12
    0 Votes
    12 Posts
    421 Views
    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 Votes
    14 Posts
    753 Views
    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 Votes
    4 Posts
    395 Views
    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 Votes
    4 Posts
    304 Views
    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 Votes
    2 Posts
    176 Views
    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 Votes
    5 Posts
    233 Views
    pilouP
    Seems Didier Bur has made a big plug about that Layers Manager
  • Simple Loft tool from Chris Fullmer

    4
    0 Votes
    4 Posts
    757 Views
    pilouP
    another video
  • Odd results from Soap Skin Bubble

    19
    0 Votes
    19 Posts
    1k Views
    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 Votes
    31 Posts
    2k Views
    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 Votes
    3 Posts
    2k Views
    N
    thanks
  • Weld or Stitcher doesn't work

    5
    0 Votes
    5 Posts
    736 Views
    pilouP
    For these 2 lines yes, but not for all [image: file.php?id=29722]
  • Ideas of modelling tools for Sketchup

    5
    0 Votes
    5 Posts
    468 Views
    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 Votes
    6 Posts
    2k Views
    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 Votes
    6 Posts
    672 Views
    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 Votes
    6 Posts
    273 Views
    CadFatherC
    and i even do searches!
  • What tools can help to debug?

    5
    0 Votes
    5 Posts
    305 Views
    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 Votes
    16 Posts
    3k Views
    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.
  • Crossing lines break automatically

    8
    0 Votes
    8 Posts
    2k Views
    TIGT
    I didn't realise there was a $ script already ! Sorry RickW... but my version is out there now... $5 x X for a few seconds work ?
  • Using observer results

    4
    0 Votes
    4 Posts
    1k Views
    Chris FullmerC
    Sorry Chris, I would love to help. I have never used web dialogs - however!, I have bought me a nice Javascript book and I am going through it. I only in chapter 2, so I have not got to the point where I can do anything, but maybe in a few days or weeks I'll know better how to get SU and JS to talk freely back and forth. I can say that I don't like JS nearly as much as Ruby though. Chris
  • Behind the [cg]Scenes

    18
    0 Votes
    18 Posts
    7k Views
    chrisglasierC
    @dave r said: Trapping a click on a component could be good. That happens with the Outliner. But, in the outliner, you can also click on the component in the list and have it highlighted in the model. Please see this topic for update. Highlighting is now essentially bi functional. Thanks for bringing this up - very useful feedback. Chris

Advertisement