⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Sound Effecs in SketchUp (HELP)

    31
    0 Votes
    31 Posts
    6k Views
    renderizaR
    Hi, Its been long time since I talked about this but I want to share some new information regarding sound. My initial goal was to trigger same sound simultaneously and have the ability to overlap sounds without any cutoffs or lag. Just recently I learned how to make use of HTML5 by adding a the following line on web-dialog <meta http-equiv="X-UA-Compatible" content="IE=10"> and this has opened a lot of possibilities with sound. Here is a technique that will enable multiple sounds... On HTML <audio src="sound.mp3" id="snd_test1" preload> On Javascript document.getElementById("snd_test1").cloneNode(true).play() Note: The above line of code is used every time you want to trigger sound. Also for me the only type of sound extension that is working is mp3...I have tested .swf and .wav so far. If anyone has any new info about sound and SketchUp please post it here...Cheers!
  • How to check syntax without executing

    8
    0 Votes
    8 Posts
    514 Views
    thomthomT
    catch was supposed to be rescue in my snippet. I was language confused. :s
  • The Naming of Groups (API issues)

    11
    0 Votes
    11 Posts
    1k Views
    fredo6F
    @richmorin said: @jolran said: Hope this can help you (although it's related to modifying geometry in groups): http://sketchucation.com/forums/viewtopic.php?f=180&t=52014&view=unread#p470425 Yes, that was very interesting. Thanks for the pointer (though it didn't make me feel any better about the situation): "It's worse than that — he's dead, Jim!" Sigh. -r Groups should be unique and not treated as components with multiple instances when freshly copied. This is causing so much trouble for scripts! and probably the source of numerous crashes. Regarding group names, I think the SU implementation is that the name is just an attribute. The identification is done internally based on Ids of the underlying definitions. If we wanted that all groups are created with a unique name, then I am afraid that this is a request for the SU team to modify the core. Of course, a script that will make all name unique can be written, but you would have to run it every time you create a new group. Fredo
  • Possible or Impossible? (or post your favourite jQuery..)

    20
    0 Votes
    20 Posts
    830 Views
    thomthomT
    best_picked - or best_face if you want to avoid getting an edge or group or whatnot. Yea, I've spent a lot of time testing things. The API docs are much better now then in 2007 when I started, but it's still lacking details.
  • Browser called from SU and html code

    11
    0 Votes
    11 Posts
    599 Views
    jiminy-billy-bobJ
    But remember : @thomthom said: It will work on all systems that have IE10 or newer installed.
  • Ruby loaded file vs eval

    5
    0 Votes
    5 Posts
    1k Views
    thomthomT
    Sure, but if the results are that close then it's insignificant. Large differences - the ones that matter you'll see quickly.
  • How to draw parallel lines

    2
    0 Votes
    2 Posts
    4k Views
    TIGT
    Smustard.com's offset.rb adds an ' .offset' methods faces/edges/arcs/curves etc. That should give you some ideas at least... My ExtrudeEdgesByOffset tool also has some similar code that you could think about - however the easy way to offset edges is if they belong to a face, and are therefore definitely coplanar... Instead of entities.add_edges(array) you might be better using entities.add_curve(array) to make the offsetting easier, if you want separate edges later you can always explode the curves in code...
  • Transformation.rotation multiple copy

    8
    0 Votes
    8 Posts
    315 Views
    C
    Yes I think it is a simpler way to draw the profile and pushpull, but once I started along the path of rotation I was getting some unusual things happening and I wanted to know what was going on. I'm on a learning curve with transformations so I will be looking into all the points highlighted here. I want to be able to define the number of teeth on each wheel and the diameter of the wheel. There will be eight wheels in all- I am modelling the back sprocket of a bicycle wheel and would like the script to ask how many wheels on the sprocket? What are their diameters? and what is the separation between each wheel. If I were to go along the route suggested by Dan I would have eight separate pushpulls of the axial profiles but this still would probably less error prone and much simpler.
  • Instance transformations not remembered

    6
    0 Votes
    6 Posts
    603 Views
    A
    Thanks a million. That has cracked it. I used the offset method Best wishes Andrew
  • Ruby array to hash

    7
    0 Votes
    7 Posts
    1k Views
    K
    Thanks TIG it is a good point
  • Help needed in traversing the Model

    15
    0 Votes
    15 Posts
    590 Views
    thomthomT
    Yes, it'd be trivial to collect hidden entities or collect stats. But the point being is that the code is compact and easy when you traverse like that instead of walking model.definitions which would require backtracing.
  • Trying to sort scenes by alphabetical order..Need Help!

    14
    0 Votes
    14 Posts
    757 Views
    renderizaR
    Hi, I updated [Re]Scene to include the feature to reorganize all scenes by alphabetical order. Thanks for all the help! New Web-Dialog: [image: dlg_1.jpg] Plugin Page: http://sketchucation.com/forums/viewtopic.php?f=323&t=52203 Cheers!
  • Inputbox change values.

    2
    0 Votes
    2 Posts
    161 Views
    Dan RathbunD
    Either use 3 successive inputboxes... OR use UI::WebDialog
  • New to Ruby - I want to write a script to...

    26
    0 Votes
    26 Posts
    1k Views
    K
    Hi John, The ear sounds painful! I hope you are recuperating well. Thanks for the workflow. I have got it to work, with SU loading a script automatically (which defines a function to set the current model behavior as I want it) and I call that function in console. It runs slowly compared to the all-Ruby solution - but at least it processes without crash. So I can send lots of files and leave it to run over lunch, or night! Many thanks again, Keith
  • Webdialog connect to PHP

    13
    0 Votes
    13 Posts
    2k Views
    jiminy-billy-bobJ
    @krisjaniszakis said: Does some one know how big(length) array ("v") I can send through ? http://stackoverflow.com/a/7725515 But big data like this you should go with POST instead of GET
  • Creation of folder from Ruby on Mac

    31
    0 Votes
    31 Posts
    1k Views
    D
    @tig said: You normally won't need to know why it failed I was thinking more for a standalone debug script to try and find why these edge cases are failing. john
  • Component Axis Display Option

    9
    0 Votes
    9 Posts
    264 Views
    Dan RathbunD
    @ktkoh said: Dan that code controls the global axis. I am trying to control the individual component axis visibility. And if you had read the NEXT post after THAT, before posting you would have seen I gave you the instance key as well. Lesson: Read the whole thread before posting.
  • Camera API not working properly?

    8
    0 Votes
    8 Posts
    429 Views
    renderizaR
    Thanks it worked!
  • Sketchup-Version and SUModelSaveToFile

    2
    0 Votes
    2 Posts
    171 Views
    Dan RathbunD
    This post belongs in the SDK forum.
  • Help with adding extension to Trimble's Extension Warehouse.

    9
    0 Votes
    9 Posts
    616 Views
    Chris FullmerC
    I think we all have our shining moments, and I'm certainly no exception

Advertisement