⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • My plugin work on Windows not on Mac

    18
    0 Votes
    18 Posts
    389 Views
    D
    if I change the rubies encoding to uft8 and I zapp the gremlins I get this which shows the css for font size is not good. use ems [image: DcYM_2012-11-3008.31.12pm.png]
  • Workaround for "selectSelectionTool" Mac bug?

    6
    0 Votes
    6 Posts
    171 Views
    bradB
    Howdy from Boulder, I do not see a bug in our database for this issue. I'll log a bug for you guys. Take care.
  • Webdialogs: Debugging Javascript on Mac

    4
    0 Votes
    4 Posts
    123 Views
    thomthomT
    The forum search isn't that good. I have more luck using Google to search it.
  • Does someone feel fit to adjust CGAL for usage out of ruby?

    13
    0 Votes
    13 Posts
    1k Views
    N
    I've been toying around on AWS today and I realised something. One of the RGAL's dependencies is Qt3. The precompiled CGAL library in the Ubuntu repository is NOT compiled with Qt3. This means that you have to compile CGAL yourself which is always a hassle. I don't know about other platforms though. It's possible that mac's precompiled CGAL works a charm If bootstrap fails at rb_Nef_polyhedron_3.cpp because it can't find qapplication.h, you have two options. *Either comment out the show method in the cpp file (dont forget to comment out the rice refference to it at the bottom of the file) and the two lines (qapplication and Qt_widget) in the rb_Nef_polyhedron_3.h file *Or get your act together and compile CGAL from scratch remembering to set the Qt3 flag to true. Ideally, it would be nice to have the Nef_polyhedron return a qt_widget object that ruby can then put in its own qt application. I have the feeling that that just isn't possible though.
  • How to modify texture color with code?

    6
    0 Votes
    6 Posts
    190 Views
    A
    I think when setting a color to a textured material, the change becomes visible immediately, however the API does not differ between colorizing (checkbox in the materials browser) and color-shifting (pointer on the color wheel). Assuming you rotate the color wheel of a material A and get material B: [image: Z4QK_colorize.png] We can then read the color value of B: ` material.materialType 2 color = material.color Color(200, 147, 62, 255)then reset it to the texture image's original look: material.color = nil nilThis way we get A. material.materialType 1then trying to set it again: material.color = color Color(200, 147, 62, 255) material.materialType 2` This time it is also colorized (C) and we have no control about it.
  • Attributes in Sketchup - Probably a stupid question

    10
    0 Votes
    10 Posts
    1k Views
    thomthomT
    @fdarma said: Well, I have no idea that such an instance definition existed. On that topic, a detailed breakdown of how instances and definitions work in SketchUp: http://www.thomthom.net/thoughts/2012/02/definitions-and-instances-in-sketchup/ If you are fresh to SketchUp plugins I recommend you also check out this: http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/
  • How to get the absolute coordinates of faces?

    7
    0 Votes
    7 Posts
    3k Views
    liquid98L
    Hi Ibswu, Check this: http://sketchucation.com/forums/viewtopic.php?f=180&t=48769 -- Liquid
  • New SketchUp Developers Tools - TestUp

    18
    0 Votes
    18 Posts
    1k Views
    S
    @driven said: I did wonder the same after cloning the new version and losing that fix, at the same time I added </body> > <script> bodyLoad() </script> and deleted it the top tag, again. I'm away for a few days but will try your version hack, does it work with gems? john The only reason it wouldn't work with gems is that SketchUp doesn't set up a library load path to anything except their own stuff. To get any other ruby code you need either to copy it into SketchUp's area or manipulate the ruby load path before you access it. Steve
  • Need openssl.so

    4
    0 Votes
    4 Posts
    340 Views
    B
    Thanks , TIG and Dan, I have decided to install Ruby, though it seem a little complex to me
  • An animation for a walk through in a model using ruby

    2
    0 Votes
    2 Posts
    109 Views
    Dan RathbunD
    @sachi said: User has to change the scene(click on the scene tab) manually to display the animation(to go to the next scene). No the user chooses from the menu: View > Animation > Play For Ruby YOU use the Animation class. Or just change the selected_page via the Pages collection.
  • Wrapping HTML in ruby, why?

    3
    0 Votes
    3 Posts
    100 Views
    jolranJ
    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.
  • 500 Plugin Requests

    14
    0 Votes
    14 Posts
    2k Views
    Dan RathbunD
    @dan rathbun said: @tig said: So who is to produce the list of [REQ] posts that have been answered / unanswered ? (1) Can moderators set a topic to "Solved" against a certain post, with the new "solution feature" (green check button) ?? The answer to (1) I'd say is YES. Here's an image of one of my posts.[image: 8HVb_solved_post_in_topic_list.PNG] I personally changed the title prefix from "[Issue]" to "[Closed]", but it was Gábor that actually marked it solved. (He reminded me of the "solution feature" in doing so.)
  • Model.import not working for newbie.

    13
    0 Votes
    13 Posts
    441 Views
    timberlineT
    Thanks, That plug-in will do nicely. I have imported a test file and it worked well.
  • Allow to start a plugin just once

    4
    0 Votes
    4 Posts
    116 Views
    Dan RathbunD
    @tig said: Then later use @dlg to change its url, show it etc, and set/reset all other options available etc... This is important! The dialog instance is not destroyed when you close it. You can re-open it again. And if you had data from the dialog, stored in Ruby vars, you can reset them back into the dialog's Javascript vars, after it reopens.
  • Add_face(edearray) not working?

    11
    0 Votes
    11 Posts
    510 Views
    thomthomT
    You can get a type of entity faster by using grep. (See this thread: http://sketchucation.com/forums/viewtopic.php?f=180&t=48885 ) <span class="syntaxdefault"></span><span class="syntaxcomment">#&nbsp;Get&nbsp;an&nbsp;Array&nbsp;of&nbsp;all&nbsp;of&nbsp;the&nbsp;selected&nbsp;Edges<br /></span><span class="syntaxdefault">edges&nbsp;</span><span class="syntaxkeyword">=&nbsp;</span><span class="syntaxdefault">selection</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">grep</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Edge</span><span class="syntaxkeyword">)&nbsp;</span><span class="syntaxdefault"></span>
  • Make OSX WebDialog alert of script errors?

    6
    0 Votes
    6 Posts
    143 Views
    Dan RathbunD
    The MSDN page says there are no standards that apply to onerror (its IE only.) You could it on both the document and window objects just to be sure. If Safari is DOM Level 3, then you may need to use: %(#8000BF)[window.addEventListener("error",*fHandlerName*,*bCapture*)] [window.addEventListener](http://msdn.microsoft.com/en-us/library/ff975245(v) DOM Level 3: Error Example: http://msdn.microsoft.com/en-us/library/hh772306(v=vs.85).aspx Or you could %(#8000BF)[catch] the errors with JS: [url=http://msdn.microsoft.com/en-us/library/4yahc5d8(v=vs.85).aspx:3cyk4r6q]try ... catch ... finally[/url:3cyk4r6q] [url=http://msdn.microsoft.com/en-us/library/85fscz6h(v=vs.85).aspx:3cyk4r6q]throw[/url:3cyk4r6q] [url=http://msdn.microsoft.com/en-us/library/dww52sbt(v=vs.85).aspx:3cyk4r6q]Error object[/url:3cyk4r6q]
  • [Code] Grepping entities

    19
    0 Votes
    19 Posts
    3k Views
    dkendigD
    actually, here's the benchmark code I ran class Magic;def initialize(&block) @block=block;end def ===(other) @block.call(other) end end def GetVrayImportantArrayFromGrepDrawingelement(entities) return entities.grep(Sketchup;;Drawingelement){|ent| false == (ent.class == Sketchup;;Edge) ? ent ; nil}.compact end def GetVrayImportantArrayOfTypesFromGrep(entities,typeHash) for curType in typeHash.keys() typeHash[curType] = entities.grep(curType ) end end def GetVrayImportantArrayFromGrepMagic(entities) return entities.grep(Magic.new {|ent| ent if(ent.class == Sketchup;;ComponentInstance or ent.class == Sketchup;;Group or ent.class == Sketchup;;Face)}) end def GetVrayImportantArrayFromLoop(entities) vrayImportant = Array.new() for ent in entities.to_a if ent.class == Sketchup;;Face or ent.class == Sketchup;;ComponentInstance or ent.class == Sketchup;;Group vrayImportant.push(ent) end end return vrayImportant end def RunBenchmarkOnEntities(entities) testHash = Hash.new() testHash[Sketchup;;Face] = [] testHash[Sketchup;;ComponentInstance] = [] testHash[Sketchup;;Group] = [] grep_drawing_ele_result = grep_magic_result = compare_loop_result = nil grep_drawing_ele_start_time = Time.now.to_f grep_drawing_ele_result = GetVrayImportantArrayFromGrepDrawingelement(entities) grep_drawing_ele_end_time = Time.now.to_f grep_types_start_time = Time.now.to_f grep_types_result = GetVrayImportantArrayOfTypesFromGrep(entities,testHash) grep_types_end_time = Time.now.to_f grep_magic_start_time = Time.now.to_f grep_magic_result = GetVrayImportantArrayFromGrepMagic(entities) grep_magic_end_time = Time.now.to_f compare_loop_start_time = Time.now.to_f compare_loop_result = GetVrayImportantArrayFromLoop(entities) compare_loop_end_time = Time.now.to_f puts "drawing_ele_test time; #{grep_drawing_ele_end_time - grep_drawing_ele_start_time}, resulted in #{grep_drawing_ele_result.size} elements found" puts "types_test time; #{grep_types_end_time - grep_types_start_time}, resulted in #{testHash.values.flatten.size} elements found" puts "magic_test time; #{grep_magic_end_time - grep_magic_start_time}, resulted in #{compare_loop_result.size} elements found" puts "loop_test time; #{compare_loop_end_time - compare_loop_start_time}, resulted in #{compare_loop_result.size} elements found" return nil end RunBenchmarkOnEntities(Sketchup.active_model.entities)
  • EntitiesObserver and attributes

    7
    0 Votes
    7 Posts
    235 Views
    R
    Great, this solved my problem! Thank you very much Dan!
  • [PDF] Git vs Mercurial code repositories

    4
    0 Votes
    4 Posts
    760 Views
    Dan RathbunD
    UPDATED TOPIC - added PDF in first post.
  • How to find loops edges from selection

    7
    0 Votes
    7 Posts
    205 Views
    B
    thanks TIG, I worked it out by classify_point and raytest

Advertisement