sketchucation logo sketchucation
    • Login
    1. Home
    2. jolran
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 37
    • Posts 1,027
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Two identical faces, but show just one

      You can always make the face into a component and glue the component onto the other face. They will not "Z-fight" then.

      posted in Developers' Forum
      jolranJ
      jolran
    • Exploding edge-group, strange result.

      Hi!
      Just wondering why this is happening.
      I made a group with entities that where red 2d-face polygons. Inside that group another group with only edges.

      The plan was to explode the edgegroup to "break" the edges, which they did. BUT some faces came out with no material in spite they where not, what you may call it "broken" by any edge, wierd! 😲

      I can reproduce this problem. Stoping the code before the explosion, and doing the same explosion manually in SU. Or do the same thing modeling in SU.

      Here is a pic with the edges reselected after the explosion.
      I could always do an intersection instead no big deal, but thought exploding edges would work fine as well... πŸ˜•
      Bug? Or normal behavior I did not know about.


      explodededgegroup.jpg

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Refer to entities from code

      Hah πŸ˜„ , yes thats exactly just what I did.

      I ran into trouble deleting the newly created definition, with something like :
      gp=Sketchup.active_model.active_entities.add_instance(@su_gp.definition, ORIGIN)

      Also since @su_gp (in my case) could be either a group or component I had to put in some ifs and nots as well. With entities.parent for groups just like you described.
      Not a big deal to explode, performance-vise. Feels safer.

      Thanks for reasuring about the group unique thing. Not gonna use it this time though πŸ˜„ .

      BTW hope this issue was related to the topic.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Refer to entities from code

      Hi, just want to jump in and doublecheck a little.

      So group.make_unique in the case for a group is safe to use then?

      Made a clone(instance) of the userselection group and the group was affected by transformations made (not surprisingly) if not made uniq on the original. But that anoying warning freaks me out in the ruby consol.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

      Yeiks!! Crosshatching is not working! Will fix that as soon as possible.

      edit: Actually it works. But be aware that (until fixed) if you have a negative value in 1st "angle" with crosshatching the crosshatching default value will be negative as well.
      So just erase the "-" sign in crosshacthing dialog.

      Also some geometry is created if cancelling in the crosshatching-menu.

      edited again πŸ˜„ Fixed for next version. Will be added in ver 1.9.

      Funny thing, been testing a lot but did miss this obvious thing.
      Sorry about that.

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

      http://sketchucation.com/forums/viewtopic.php?f=323&t=38637&p=341461#p341461

      New version added. Please read the help-file in the draw menu(if it's possible πŸ˜„ )

      It would be nice with feedback if it works on Mac.
      Some new stuff, but all is in the helpfile. Might do a tutorial later on, just for fun.

      /Joel

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin][WIP][OpenSource] Bezier Surface

      @unknownuser said:

      But the biggest bottleneck is SketchUp itself - in that adding geometry gets slower the more geometry is already in the model

      You mean the total amount of edges-faces in model or the subdividing procedure?

      But still, all Ruby you say. That looks like you got some nice realtime response, thought you pulled some C extension on it already.

      Hope you find time to do some more tutorials on C-extensions later then πŸ˜‰

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin][WIP][OpenSource] Bezier Surface

      Wow, performance seems very quick. πŸ‘
      May I ask, is it all Ruby?

      posted in Plugins
      jolranJ
      jolran
    • RE: Need help with Ruby Plugin - Mac

      Ah yeah, thats correct. At least I got a part of it right.
      Nice link BTW. Good reading. πŸ˜„

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Need help with Ruby Plugin - Mac

      Is the path correct? Your using html_path = Sketchup.find_support_file "batch_exporter_gui.html" ,"Plugins/Batch_Exporter/"

      Maybe something like this is safer?
      html_path=File.join(File.dirname(FILE), "Batch_Exporter/batch_exporter_gui.html")

      For what I know Sketchup.find_support_file should be avoided since not every ones computerdisks looks the same.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: .get_element_value with radio button sets

      Ahh, I see John. If I get it right the sethtml thing is working cause of updated Mountain Lion?

      Thomthom, I have been searching through threads where you discuss just this issue, thats why I also asked this question. Being not confident in Webdialog, the platform issues are a bit confusing sometimes. But I take your word for it and try to fix it with set_file instead.
      Thanks.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: .get_element_value with radio button sets

      Hi!

      In John/driven's example he uses dlg8.set_html(html) with a Ruby "inline" HTML codestring. That works on Mac? I thought set_html() was to be avoided?

      So doing like that and putting in an image for button like below would work on Mac?

      In Ruby..
      my_icon=File.join(File.dirname(FILE), "folder/myicon_pic.png")

      ( In the HTML wrapped something like html = %[html + js code etc...])

      Have an image as a button:
      <img src="#{my_icon}" width="24" height="24" onClick="jsfunction()">

      Note, Im not using a separate Html file in this case.
      I think Adam is doing something similar in Goldilocks, but uses URL if I remember it correct.

      Hope I'm not hijacking the thread, thought it was relevant.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: Energy &amp; Environment Analysis Plugins ?

      I find this interesting. I havent tried any of these, please report back what you find out.
      I'm not an architecht, but I do buildingpermits. Recently new rules, and energianalysis is required in my country.

      It would be fun to try to construct plugin for this, but I think the plugin has to be approved or licensed or what you call it.

      posted in Plugins
      jolranJ
      jolran
    • RE: Octane.

      Just wanted to say. I use Octaine with TIG's exporter. Works fine!
      Got an gtx 580 as graphiccard.
      Strength - You see quite rapidly where you're going in the render. I often use an ambient occlusion "sneeky render" that's very fast and gives good enough results, at least for me. There are different rendermethods to choose between.
      And an online database of materials where you can drag and drop from the menu.
      So easy setup if you're not a perfectionist.
      Also node-based interface, but one doesent have to bother about that if one doesent want to..

      Another thing, if you are a paying costumer you will get full access to the whole site with bigger forum where you can get beta and test versions. There's quite some activity going on there. Can't tell how mature the software is yet, compared to for ex Thea.
      Octaine requires a good graphiccard.

      posted in SketchUp Discussions
      jolranJ
      jolran
    • RE: Genetic algorithm bin packing

      I would recommend starting with e-book Automatic Sketchup.
      http://www.autosketchup.com/
      It won't learn you ruby in depth, but at least get you going programming in Sketchup, right away. You will then get a feeling for if it's the right activity for you.
      A very timeconsumming one I might add πŸ˜„

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

      πŸ˜„

      Thanks, more coming soon.

      posted in Plugins
      jolranJ
      jolran
    • RE: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

      In Version 1.7 http://sketchucation.com/forums/viewtopic.php?f=323&t=38637

      The menu should remember the values during sessions. Although not crosshatching. Crosshatching is calculated as a negative from value 1(Angle).
      If it seams like a must by request, Remebering 2nd values can of course be done, but I don't think it would be practical.

      I'm working on the next version with patterns, still lot's to do πŸ˜„
      I'm doing a comeback in coding, been off for a while..

      Hope this version will work OK for ya!

      posted in Plugins
      jolranJ
      jolran
    • RE: Wrapping HTML in ruby, why?

      Aha, I see. So embedding HTML is more for convenience sake then.
      I remember even over half a year ago there where issues on Safari, thought they whould have been fixed by now.

      Kind of the answer I was hoping for though, if I understood it correctly.

      Thank you.

      posted in Developers' Forum
      jolranJ
      jolran
    • Wrapping HTML in ruby, why?

      Hello!

      I haven't been programming for a while. Now I have been going through some other people's scripts for inspiration and education purposes.

      I notice several scripts is putting the HTML in the rubyscript.
      And a few topics on this forum seems also to favour this behavior.
      Doing some searching on this forum I get the impression it has to do with set.file problems for Safari?

      I guess the question is, since I have been putting the JS, Jquery and HTML in separate files and folders will I benefit rewriting the HTML in the rb.file?

      I rather keep things like I have it right now, but if it's proven I will run into trouble later on I rather change it right away.
      I do realize there is one short and one long answer to this question, and I'll appreciate any advice I'll get.

      Thanks/ Joel.

      posted in Developers' Forum
      jolranJ
      jolran
    • RE: [Plugin] Hatchfaces (v1.8 beta) UPDATED 15-Dec-2012

      Hi Emartingr.

      Can the menu keep the last input values? I'm afraid I can't tell you at the moment 😳

      (This is a bit embarrassing)I have not done any coding since May and now I feel lost in the world of Ruby, so I'm rehearsing a bit at the moment.
      Did not expect to forget a language so fast πŸ˜†
      rookie mistake..

      Hopefully be back soon. Haven't given up the idea with an update with better dialogs and stuff. Unless someone else has done a similar plugin since I've been gone.

      posted in Plugins
      jolranJ
      jolran
    • 1 / 1