Urasik Extensions | Lots of new extensions to check out Learn More

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • What tools can help to debug?

    5
    0 Votes
    5 Posts
    391 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
  • ? Print Path/Filename and/or Scene's Name and Description?

    3
    0 Votes
    3 Posts
    234 Views
    JClementsJ
    Thanks, I will give it a try. (I may have used it before but forgot the name). Out of curiosity, is there anything in the features in Dynamic Components which can call the Scene names, etc. Be cool if you could have one dynamic component that could update itself when place onto a new page or if page discriptions or order change.
  • Embedding DLLs inside SketchUp Plugins(GSoC)

    3
    0 Votes
    3 Posts
    351 Views
    A
    so do we get a way if we want to implement C++ TUIO client http://www.tuio.org/?software in a DLL loadable into SketchUp, any ideas ? cheers anirudh
  • [Tutorial] Beginning Ruby 2 - Writing a Script

    6
    0 Votes
    6 Posts
    487 Views
    3
    Are the rubie scripts based in the old dBase manner. It's been years for me but it looks almost the same as I remember...
  • Help with the &quot;Must Have plugins&quot;

    2
    0 Votes
    2 Posts
    284 Views
    Chris FullmerC
    Yes, the installation is very simple. If any scripts have any non-standard installation, they normally explain that in the first post of the plugin thread. The general idea is this. Single .rb files (like progressbar.rb), just get placed in the Sketchup\Plugins folder. If it is a .zip file that contains lots of files and folders, then the author normally has it zipped in such a way that you can just open the zip file, select everything and drag it right into your plugins folder and they script will be installed correctly. There are a couple of scripts that require you to install other scripts (some scripts are dependent on other scripts to work). In those cases, just install the other scripts just like I described above. On top of this, you need to be aware that not all scripts get placed in the "plugins" menu. They can be put in the right click context menu, "plugins", "draw", "tools", "file", etc. They can install themselves into any main menu in SketchUp. So sometimes you have to hunt around for them. If you have questions about specific scripts beyond these generaly questions, you can always ask in that plugin's thread. Hope that begins to help, Chris
  • (REQ)uniform scale on separated faces

    6
    0 Votes
    6 Posts
    429 Views
    majidM
    thanx Chris and Pilou for considering,... maybe a tweak over "multiple S R" plugin is the solution , or maybe adding some option to it!.. also maybe thaking a look wings 3d gives many inspirations
  • [Code] material.delete

    17
    0 Votes
    17 Posts
    4k Views
    TIGT
    Use v1.2: fixed an array bug. http://forums.sketchucation.com/viewtopic.php?p=166978#p166978
  • Timeout for Ruby Scripts

    6
    0 Votes
    6 Posts
    568 Views
    J
    @jim said: I am getting the same sort of increasing slow-downs as Chris was asking about. The time between each pause increase the more geometry is added. Oops, not quite. I was creating and exploding groups when I wrote the above. When I just add plain geometry, the timeout appears to work alright. But... the pause between when my dialog is visible and when it actually becomes click-able is getting longer. I think I'm beating a dead horse.
  • Iron Bend Drawing

    5
    0 Votes
    5 Posts
    876 Views
    charly2008C
    thank you Gaieus. i have the latest update. Karlheinz
  • Generating and Uploading Results

    4
    0 Votes
    4 Posts
    249 Views
    R
    First thing would be to talk to someone who knows about web dialogues As far as i know theyre basically an IE window inside SU, so in theory you can just feed it a URL and it opens it. Heres the api page: http://code.google.com/apis/sketchup/docs/ourdoc/webdialog.html
  • Need help debugging

    3
    0 Votes
    3 Posts
    231 Views
    PixeroP
    Thanks, that seem to work. (I didnt have to use that last part.)
  • [Idea] Aligner

    10
    0 Votes
    10 Posts
    975 Views
    D
    download second link PowerAligin_2.swf
  • Rotate, Move and arrange components, Plugin??

    8
    0 Votes
    8 Posts
    2k Views
    pilouP
    @unknownuser said: Any ideas is welcome... You don't like my Sketchyphysic3 idea?
  • Does exist a Component maker?

    6
    0 Votes
    6 Posts
    901 Views
    pilouP
    Cool And if it's possible to apply the "hole selection" to a volume that will an another perfect plug!
  • An unchecked exporter/IMPORTER to T3D, ASE, PSK and OBJ

    5
    0 Votes
    5 Posts
    2k Views
    P
    I asked for help, as the exporter/importer download link is down, and someone answered me! He put a link in the "Shout There" Box with the exporter of the official blog ( http://hardpcmtechnologies.blogspot.com/ ). I don't want to overload his server as it's a temporary solution, so I will attach the file here. Of course, the alternative download link is placed in the "Shout There" box. I am testing it right now. I am exporting a sketchup file to .obj format in a very complex model. I hope it can export textures, too. So the zip is untested now. I will tell you the results. Thanks a lot rog! I link your page: http://rog.gameslate.com/ Edit 1: I am trying to import .obj and .ase files to blender, but there is a python error. I believe that, in theory, .obj is exported with textures. Is the problem due to my Blender? I continue testing. Edit 2: It can import in sketchup the previously generated .obj files, without textures. Edit 3: .Obj files imported in Blender with other model. Probably a problem with blender's obj importer regarding scale. No textures, I believe now that are generated in a separated folders for .obj files, and there is not such folder. HSKP2UNR_v089.zip
  • Display binary data as image in WebDialog?

    4
    0 Votes
    4 Posts
    276 Views
    thomthomT
    @newone said: And if I delete the material, the image will remain and will feed the webdialog with wrong informations (the picture will show, but the related material will not exist). Why not delete the image when the material is deleted? And purge your temp folder when you create new model. hmm... flash maybe?

Advertisement