sketchucation logo sketchucation
    • Login
    1. Home
    2. jolran
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 37
    • Posts 1,027
    • Groups 2

    Posts

    Recent Best Controversial
    • [WEBDIALOG] getJSON from source folder

      Hi.

      (this topic is related to NODE-GUI development BTW..)

      Been fiddeling with Jquery getJSON a little and have some quiries.

      I have quite a large configuration data that needs to be hardcoded.
      Basically info concering each node that cannot be created
      dynamically.

      Normally I suppose I could just store it into a simple JS object, but during a session
      it is not likely all nodes from that library would get used. There could be hundreds+!
      So it seams like waste of energy for the browser caching all that..

      So I tried to store a config.json in the source folder and use
      Jquery.getJSON() and it seams to be working fine. Something like:

      
      $.ajaxSetup({ cache;false });//prevent from caching the whole file
      $.getJSON("JSON/myjson.json", function(data){ 
      
        // traverse data here and store in variable or whatever..
      
      }
      
      

      Now off course I'm wondering if this is a safe way off doing things or could run
      into browser specific trouble or security_policy breaches. I don't think I'm violating
      the same origin policy?
      Been googeling the subject quite hard but doing this is in Sketchup and it's enviroment
      is so specific it's quite hard to relate.

      Maybe I'm overcomplicating this. Just store that damn thing in a object πŸ˜„

      NOTE: I'm only Reading the JSON, not storing any data.
      Also I have considered the issue of error check for valid JSON.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: [Plugin] Multiple Component Edit Warning

      @unknownuser said:

      So I forked out some cash and got Dan Rathburn to code it up

      πŸ‘ for actually paying someone doing a job.

      posted in Plugins
      jolranJ
      jolran
    • RE: Assigning Textures

      maybe because Dan suggested you do a gsub BEFORE if File.exists?

      Note: You can also edit in place gsub!(etc..)

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Missing Pages

      Happend to me twice in 1 week now (missing pages).

      LO version 3.0.16846

      Have been using locked pages.

      posted in LayOut Bug Reporting
      jolranJ
      jolran
    • RE: X-UA-Compatible meta tag changes image button position.

      Can't one do a CSS reset at the begining of the css file to accomodate for that ?

      If using Jquery it might be good idea to stick with pixel dimensioning, no ?
      Since Jquery calculates most stuff based on pixels..

      edit:

      @unknownuser said:

      the button can't be rendered anymore using the theme, and it won't look native anymore

      Ah, oh yeah I see your Point. And you're only referring to font-size regarding em-size?

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Geodesic Dome Plugin

      Sketchy, no need to test for other browsers.

      Sketchup only uses IE or Safari(I think) if you are on MAC for displaying webdialogs regardless if you have other browsers installed and set to default.

      For browser compability I shouldent bother being compatible with anything less than IE9 and CSS3. IE10 is out there for free, get it!

      It may be good though, as Pilou suggest to check with SU 7 and 8. Pilou is the only one who still uses SU 6 πŸ˜‰

      posted in Plugins
      jolranJ
      jolran
    • RE: Mixed Up Data

      You are not forced to use classvariables just because your in a Class πŸ˜„

      I think Ruby Monk has some nice and easy reading about this:

      http://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/45-more-classes/lessons/113-class-variables

      It says :"class variables can be used to store data that belongs to a class, but not to its instances"

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Mixed Up Data

      It sounds like your output is an @varible not being set to nil at start of the program.
      It will store the values in @variable during the Sketchup session.
      Talking @variables in your module scope here, but since you say your having problem with a Class this might not be it.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: [Plugin] Layers Panel 1.2.1

      Ahh, I see. That's a different matter then..

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] Layers Panel 1.2.1

      Exellent! I'll give this a go later..

      @unknownuser said:

      It would indeed be usefull. I already tried, but I use a jquery plugin for sorting/nesting, I didn't write the feature. I guess I'll have to dig into this

      I suspect you are using Jquery draggable, droppable and sortable, right?

      I'm working on similar things for my "node-editor". So far I get the impression (from all over the place) implementing "multiselect" is a bit funky. At least if you would like to do some kind of rectangle-select-multi-thingy and use thoose 3 UI features mentioned. I hope I'm wrong, cause it would be great if it could be done easily and stable.

      Anyhooo... Here's a snippet that at least let you select multiple and drag them..
      Now, sorting/dropping them is another thing..

      Multi Drag Demo - ThreeDubMedia - JSFiddle - Code Playground

      JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.

      favicon

      (jsfiddle.net)

      (hint use ctrl to select 1 instance)

      edit: Sorry posted wrong fiddle:

      Multi Drag Demo - ThreeDubMedia - JSFiddle - Code Playground

      JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.

      favicon

      (jsfiddle.net)

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] s4u_Align

      @unknownuser said:

      I'm fixing this error. It was because I used center's face instead of centerbounds's face

      Well you could probably use something like
      centerpoint = face.bounds.center.project_to_plane(face.plane), I gather.

      However I don't think the alignment problem is comming from this ?
      (the Component in pic is flipped backwards/upwards, part from not sticking to the face)

      Are you using the face.normals to align or axes of Components?
      Face normals would be more predictable, possibly. If getting the right nested transformations from the Group/Component, that is.

      Anyway, thanks! Be willing to testdrive next version for some feedback.

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] s4u_Align

      Hi, tried using this plugin on Project of mine. Think there is an issue with Glue-ready-components having their axes not aligned to Global axes ?

      Code is scrambled so can't tell what's up, bro πŸ˜‰ ..

      See pic.


      climbinggrip.jpg

      posted in Plugins
      jolranJ
      jolran
    • RE: Is there such plugin?

      πŸ‘

      posted in Plugins
      jolranJ
      jolran
    • RE: Is there such plugin?

      Hi Majid.

      Reading you wish, it sounds like one can easily do the same by creating a Group manually in Sketchup, model some and explode it afterwards?

      My spontanious guess is that it would be quite trick to create a plugin that register Sketchup internal Tools-drawing-events into a Group. But again, it wouldent surprise me if this thing already exist...

      Or perhaps this could be achieved in a different way, since all you want is NOT having the "break edges behavior" during specific moment, am I right ?

      Groups can be unglued by rightclicking and choose unglue btw..

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] s4u_Align

      Hah, exellent!

      I do suspect there exist similar Tools doing something like this, but your plugin look very easy to use and practical. Bravo!

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] Plugin to profile/optimize code

      It seams to be Printing to the console ok!
      Can't say I know how to profile properly, so this tool will be valuable for me. Thanks!

      posted in Plugins
      jolranJ
      jolran
    • RE: I quit

      @unknownuser said:

      I'm on the Extensibility Team, the API and plugins team.

      πŸŽ‰

      Well done! Congrats!

      posted in Corner Bar
      jolranJ
      jolran
    • RE: Finding deepest entity in pick path

      Hej dΓ€r Julia.

      I think you'll find some goodies in this guide:

      Link Preview Image
      PickHelper β€” A Visual Guide

      I’ve put together a visual guide to the PickHelper class in SketchUp’s Ruby API. When I first tried to use the PickHelper class I was confused over what the different methods did, and f…

      favicon

      Procrastinators Revolt! (www.thomthom.net)

      In particular have a look at pick_segment further down in that pdf.

      In case you fail with picking clines in code you could eventually simulate a CLine with a GL draw object(Gl line) and use pick_segment. But I guess you prefer to stick to your clines..

      Anyway, hope this helps.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Fit_plane_to_points problem

      @unknownuser said:

      thank jolran, that's not my next step, but I thank you, I had not seen the command project_to_plane πŸ‘

      Ahh, I see. You ARE just interested in getting Point and vector, for some reason. πŸ˜„

      Then if I'm not misstaken I think p4 is redudant in you calculation ?

      You only have to feed 3 Points for fit_plane_to_points.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Fit_plane_to_points problem

      Fit plane to Points returns a plane on which you can use SU-API methods.
      It also returns what Dan said.

      A plane is infinite, and so is a Line [point3d, vector]

      I suspect what you acctually want to do is Project your Points on to that plane with the point.project_to_plane method?

      posted in Developers' Forum
      jolranJ
      jolran
    • 1 / 1