⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • OnScreen GUI Toolkit

    28
    0 Szavazatok
    28 Hozzászólások
    8k Megtekintések
    D
    I would like to do this, to make a inputbox made with OpenGL, could you please show an example of how to do this?
  • Just idea

    8
    0 Szavazatok
    8 Hozzászólások
    288 Megtekintések
    gillesG
    the idea was not a selection memory , but to select what is being drawn.
  • [Bug] Sketchup.write_default on Mac

    6
    0 Szavazatok
    6 Hozzászólások
    264 Megtekintések
    Dan RathbunD
    Keep in mind that read_default passes the attribute text through eval() before it is returned, apparently with a rescue nil clause (or modifier.) This is why we cannot have any un-escaped embedded double-quote characters in the attribute.
  • In Need of Custom Slicing PlugIn For 3D Printing

    3
    0 Szavazatok
    3 Hozzászólások
    152 Megtekintések
    J
    I gave it a shot some time ago and it did not work well. I will see if anything has chenged. Thank you for the suggestion.
  • Surface Outer Loop?

    11
    0 Szavazatok
    11 Hozzászólások
    837 Megtekintések
    thomthomT
    Here's my variant: http://sketchucation.com/forums/viewtopic.php?f=180&t=41211#p365380 Would be interesting to profile them.
  • Set alpha of a face without material

    7
    0 Szavazatok
    7 Hozzászólások
    267 Megtekintések
    N
    Oh, okay, this is a nice trick... I think, I will get a lot of problems, when Sketchup crashes... What do you think about this idea: I will create for every face, which has a material != nil a new material => name: face.to_s To show the faces again, I will remove the materials again...
  • API to Open Model Info Dialog?

    5
    0 Szavazatok
    5 Hozzászólások
    226 Megtekintések
    D
    Thanks Dan, exactly what I needed.
  • Length method returns unexpected value

    9
    0 Szavazatok
    9 Hozzászólások
    419 Megtekintések
    thomthomT
    On the topic of units in SketchUp: http://www.thomthom.net/thoughts/2012/08/dealing-with-units-in-sketchup/
  • Removing unwanted interior faces from a mesh?

    6
    0 Szavazatok
    6 Hozzászólások
    402 Megtekintések
    pbacotP
    French fries work for Frank Gehry! [image: DisneyHallOrgan.jpg] I like your array better!
  • Add_edges with a LOT of edges

    11
    0 Szavazatok
    11 Hozzászólások
    351 Megtekintések
    TIGT
    Yes.... but... Small edges can exist quite happily, it's just using them that is problematical. So if he has completed all changes/processing, then I believe that rescaling the geometry is best, but if further changes are wanted then any [re]scaling needs to be avoided until all processing is done anyway...
  • Using script written in notepad++

    6
    0 Szavazatok
    6 Hozzászólások
    280 Megtekintések
    TIGT
    Because you haven't given us the slightest clue about how you have structured your script how could we hope to help you There are by now many example scripts around to give you a clue on how to construct one... You speak of 'extension' - have you constructed you tool in two parts ? a loader and a main script in a subfolder? Have you given it a menu.context-menu/toolbar etc... Looks like you have some way to go
  • Installer for Plugins

    14
    0 Szavazatok
    14 Hozzászólások
    2k Megtekintések
    J
    @dan rathbun said: So this is obsolete for SketchUp ver 8+ ?? No, it still works. I like it better than the built-in installer because it keeps a list of installed files - which lets me see exactly what was installed and where in case I want to delete it. It's here: https://sites.google.com/site/jimfoltz/plugins-lab/installer But I could put it on dvcs, if interested.
  • Intersect ray and circle in 3D?

    14
    0 Szavazatok
    14 Hozzászólások
    3k Megtekintések
    AdamBA
    The best optimization, is to avoid doing work at all. Work on your algorithm first. (C++ is a superset of C) Here's some numbers I've simply plucked out of thin air: Invoking a C++ method from Ruby costs 500+ instructions. If the work you do in the method is less than this (calc distance = ~10 instructions), the cost of invocation swamps the cost of evaluation. Adam
  • Webdialog on Mac

    2
    0 Szavazatok
    2 Hozzászólások
    104 Megtekintések
    thomthomT
    It's not modal, no. It makes the window stay on top of the SketchUp windw (which is what Windows does in all cases.) For my CleanUp plugin I worked around it by creating a tool where I hooked up the deactivate event to close the dialog. That also captures the mouse events so users can't click randomly in the model and change it while the tool and dialog is active. On SU8+ I also draw a semi-transparent polygon over the whole viewport to dim it. Source code for the tool wrapper is here: https://bitbucket.org/thomthom/tt-library-2/src/5ec87b0647c953c397b605922f31d5dbe21ad548/TT_Lib2/modal_wrapper.rb?at=Version%202.7.0
  • Force a redraw after a value is entered in the vcb?

    2
    0 Szavazatok
    2 Hozzászólások
    265 Megtekintések
    TIGT
    A selection-observer to see if it contains DC instance[s] ? A tools-observer to see if Scale in active && @check1 gives you @check2 ?? Now an entities-observer if @check2 looking at the DC[s] looks for any changes, gives check3 ??? If @check3 then call something like: <span class="syntaxdefault">def dc_redraw</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">ent</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> pbar_visible</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">true</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> undo</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">false</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    ldc</span><span class="syntaxkeyword">=</span><span class="syntaxdefault">$dc_observers</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">get_latest_class</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">    if undo<br />        ldc</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">method</span><span class="syntaxkeyword">(;</span><span class="syntaxdefault">redraw_with_undo</span><span class="syntaxkeyword">).</span><span class="syntaxdefault">call</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">ent</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> pbar_visible</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">    else<br />        ldc</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">determine_movetool_behaviors</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">ent</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">        DCProgressBar</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">clear</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">        ldc</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">method</span><span class="syntaxkeyword">(;</span><span class="syntaxdefault">redraw</span><span class="syntaxkeyword">).</span><span class="syntaxdefault">call</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">ent</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> pbar_visible</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">        DCProgressBar</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">clear</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">        ldc</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">refresh_dialogs</span><span class="syntaxkeyword">()<br /></span><span class="syntaxdefault">    end<br />    </span><span class="syntaxkeyword">@</span><span class="syntaxdefault">view</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">refresh<br />    rescue TypeError </span><span class="syntaxkeyword">=></span><span class="syntaxdefault"> e<br />    </span><span class="syntaxcomment"># suppress nil to float conversion error that happens<br /></span><span class="syntaxdefault">    </span><span class="syntaxcomment"># when redraw is called directly with true 2nd arg ?<br /></span><span class="syntaxdefault">end</span><span class="syntaxcomment">#def<br />### so it&nbsp;is&nbsp;NOT; $dc_observers.get_latest_class.redraw_with_undo(dc)<br />### it's; self.dc_redraw(dc, true, false)&nbsp;</span><span class="syntaxdefault"></span>
  • [JS] Global variables

    3
    0 Szavazatok
    3 Hozzászólások
    219 Megtekintések
    jolranJ
    Thank you Thomthom. I think you answered all my questions. @unknownuser said: All is restricted to the scope of the HTML page loaded This was my main concern. I don't want to pollute other people's plugins if I create a global var. @unknownuser said: Namespacing is still good when you want to use other libraries, you then want to ensure you do not conflict. Ah, I think I understand now. Like if you create a Jquery plugin for public release, for ex? @unknownuser said: But as of TT_Lib, which is a library I have namespaced it because it's mean to be used in different environments. A, yeah. I forgot for a minute it was a library when I was pooking around. Your library is a very useful resource for me, since you are using Jquery .
  • Rbs weird behaviour on modules

    4
    0 Szavazatok
    4 Hozzászólások
    126 Megtekintések
    S
    Ok, thanks for the workaround. You should expect that no mather you use rb's or rbs's, they behave the same way...
  • Boolean operations

    20
    0 Szavazatok
    20 Hozzászólások
    11k Megtekintések
    cottyC
    @gonashvili said: actually no Hey, nobody knows everything, thats why I'm on here Then you are right here...
  • ENV['COMPUTERNAME'] for Mac?

    16
    0 Szavazatok
    16 Hozzászólások
    2k Megtekintések
    D
    @honkinberry said: Jim is correct! hostname does indeed work. but that returns the same on all 5 macs on my network, so for a Licence management usage it seems a bit pointless? If you only need to know if it's a mac or not there are many simple ways to get that... glad your happy john
  • Questions about realization of tools

    20
    0 Szavazatok
    20 Hozzászólások
    670 Megtekintések
    D
    is true, on several occasions have been very frustrating these examples [image: Bgt9_computadoragolpes.gif]

Advertisement