FredoBend | Powerful new bending tool for SketchUp Download

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • [Help] Create "Check for Update" event

    2
    0 Szavazatok
    2 Hozzászólások
    133 Megtekintések
    Dan RathbunD
    Everyone wants this functionality. Some work has been done. ExtendSketchUp has this goal. Fredo6 created a web-based update checking feature. (Do a search.) Others have done it with a UI::WebDialog You will likely need to use the functionality in the SketchupExtension class for installed versioning. Unfortunately.. the community has not yet agreed upon a file manifest format to track installed file locations. (So an uninstaller can remove them.)
  • [Code] !autoload.rb loads "!_autoload" folders - v3.0.0

    7
    0 Szavazatok
    7 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    @unknownuser said: Is the “.rb” extension really necessary when using for example “require (“sketchup.rb”)? The answer is not very simple. You should read the method dictionary for Kernel.require(), Kernel.load(), Sketchup.require() and Sketchup.load(). These methods act differently: depending on the arguments (absolute or relative paths) depending upon the Ruby version depending whether a file extension is given The require() methods push successful paths into the $LOADED_FEATURES array, but may not add the actual extension of the file that was loaded. (This could cause confusion later.) The overridden methods in the Sketchup module do not act exactly the same as the global Kernel methods. (return values and filenames in Exception messages.) We almost need a complicated decision tree with all the permutations... to decide when to use a extension and when not to. It is recommended NOT to use a file extension with the Sketchup module overrides. (This also helps in development, as the same loader script can load both rb and rbs files, after scrambling.) Also be aware that the SketchupExtension class uses these overides. This is really an issue for it own topic thread (and perhaps there already is one?)
  • Info about add_note method

    18
    0 Szavazatok
    18 Hozzászólások
    911 Megtekintések
    Dan RathbunD
    The native MoveTool can move the note.
  • Color interpolation across a face

    14
    0 Szavazatok
    14 Hozzászólások
    2k Megtekintések
    A
    Thanks everyone for the replies. @Dan using the draw in a tool's view method looks like a plausible option. Let me dig into it and get back. Thanks again.
  • Help with Animation

    23
    0 Szavazatok
    23 Hozzászólások
    4k Megtekintések
    Dan RathbunD
    @dan rathbun said: I'll see if I can cobble up a better example, perhaps I'll post it in a new [ Code ] topic (so it can be indexed with the Code Snippet indexer.) Done! [Code] AnimateSelection Example v1.0.0 .
  • OnSaveModel Observer

    3
    0 Szavazatok
    3 Hozzászólások
    138 Megtekintések
    A
    Thanks! That should work for most cases. (But it still would be nice to have a second argument with the file path, since the model.path is not necessarily linked with the location where the file (a copy) was saved.)
  • OnKeyDown repeat parameter problem

    21
    0 Szavazatok
    21 Hozzászólások
    5k Megtekintések
    fredo6F
    To simulate typematics, it is preferable to use the animation API. Tricky, but works fine in the end (I used it in ThruPaint) Fredo
  • Name of component

    4
    0 Szavazatok
    4 Hozzászólások
    302 Megtekintések
    thomthomT
    Note that there is component instance name and component name. Component instance name is the same as a group's name.
  • Entities Edge color apply

    7
    0 Szavazatok
    7 Hozzászólások
    364 Megtekintések
    thomthomT
    @tig said: mat=e2.material > if mat > cname=mat.name ### OR .display_name ? > else ### NO MATERIAL > cname="<Default>" > end#if test for the existence of the material and then get it's name if it exists, if the material is ' nil'then there's no ' name' to get. #display_name should only be used to output the name of a material to the UI - not as an id. http://www.thomthom.net/thoughts/2012/03/the-secrets-of-sketchups-materials/#speaking-of-names8230
  • How to make a model follow with movetool

    3
    0 Szavazatok
    3 Hozzászólások
    370 Megtekintések
    A
    @tig said: Let's assume model=Sketchup.active_model If you simply want to add an external SKP as a component use: defn = model.definitions.load(path_to_skp) where perhaps path_to_skp="C:/users/alecchyi/desktop/MyComponent.skp" This will ensure it's now loaded into the model. Then name=defn.name - just in case it's been given a different name from what you expected ? Then model.place_component(defn, repeat) If repeat=false then you get to add one instance of that component - just like the native tool, with 'move' built-in etc. If repeat=true then you get to place multiple instances... one after the other... If you want to place a component that's already loaded 'by name', then set name="MyComponentsName", then defn=model.definitions[name] before running the 'place_component' code... You can select an instance in code then run the Move tool on it, but that isn't what you asked?? i got it,谢谢
  • Exporting layers to Photoshop

    7
    0 Szavazatok
    7 Hozzászólások
    608 Megtekintések
    I
    @brett mcallister said: I recommend you go read this PDF to get you started otherwise you will be tearing your hair out and nothing will make sense. http://www.autosketchup.com/ OK, I will. Thanks!
  • Keeping track of a face

    8
    0 Szavazatok
    8 Hozzászólások
    372 Megtekintések
    TIGT
    When you pushpull a face the number of extra faces made in the model can be found - as discussed. Since the 'new face' [which from a user perspective is the 'original face' relocated along the face's normal] has the same normal as the original [which you can already have remembered in a reference] and none of the other new faces share this normal. It gets messy unless your new geometry is being kept inside a group [even temporarily] because the pushpulled result might coincide with one or more preexisting faces that have the same [or reversed] normal as the original face and thereby several new faceS made could have matching normals but the preexisting ones now subsumed into the pushpulled form will be missed in any before/after ents comparisons. Therefore making the new geometry in a group is highly recommended... you can pushpull, get the new face by matching normals, then intersect the face with the model's entities and re-get all faces inside the group with matching normals. Thus what's in the group mimics what would have happened without any grouping BUT lets you collect all of the newly made faces, should any be split by [potential] merging with existing geometry...
  • Sketchup 7 setting opacity with ruby?

    3
    0 Szavazatok
    3 Hozzászólások
    353 Megtekintések
    thomthomT
    For materials it's Material.alpha. If you are drawing polygons to the viewport using View.draw then you need Color.alpha. The Secrets of SketchUp’s Materials - There is a section there "Material.alpha vs Color.alpha"
  • Reverse egde orientation

    15
    0 Szavazatok
    15 Hozzászólások
    812 Megtekintések
    thomthomT
    Performance will suffer greatly if you add/remove/recreate geometry to organize your data instead of just sorting it. The more entities in a context the slower it will be. @tafkab76 said: And actually I just wanted to know how to reverse edges, Why do you want to reverse edges?
  • Observer triggers and validation methods

    8
    0 Szavazatok
    8 Hozzászólások
    443 Megtekintések
    R
    Oops, pushed submit too fast. I got the 3dconnexionmouse working with their dll in VFP9 (Visual foxpro, don't ask me why except that i love that language) who in turn is sending - yes... via SKSocket - the values to Ruby-world, turning objects around. So yes, it is working. Now I like to learn how to set up COM events binding within ruby scripts. As I explained, ruby is new to me, but I start to love that language.... Cheers. R.
  • Get parent name and type of entity

    8
    0 Szavazatok
    8 Hozzászólások
    2k Megtekintések
    K
    Thanks
  • Getting the status bar text

    3
    0 Szavazatok
    3 Hozzászólások
    198 Megtekintések
    A
    Hmm... Thanks Tom! @thomthom said: No API. You might be able to use Win32 under Windows - but I have no idea for OSX.
  • Getting and iterating scene list?

    16
    0 Szavazatok
    16 Hozzászólások
    730 Megtekintések
    Dan RathbunD
    @hpw said: Edit: Kernel.sleep does not work for that. Yes.. I guess we decided it would not, because the C++ engine cannot call observers, as the scene changes, etc.
  • Where to start?

    44
    0 Szavazatok
    44 Hozzászólások
    2k Megtekintések
    thomthomT
    @rumcajs said: And where is definited UI? That's from the API - defined in C++. Look to the documentation: https://developers.google.com/sketchup/docs/ourdoc/ui
  • DOS paths

    6
    0 Szavazatok
    6 Hozzászólások
    301 Megtekintések
    TIGT
    Most of the time I get also get 'full-paths' returned. Just occasionally they revert to the short DOS form. This can occur in the same model with the same 'other plugins' loading and the same paths used... It's not a big issue - often the short-path form works well anyway... and the posted code does return the full-path from the short-form if it's needed...

Advertisement