⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Issues with a simple material copy raycast script

    25
    0 Szavazatok
    25 Hozzászólások
    9k Megtekintések
    C
    Thanks again for the reply TIG. Unfortunately, I see the same issues. To verify it wasn't the small differences in faces from DropVertices, I made a copy of the bottom textured model and moved it directly above. I removed the top materials and then ran the script. UV issue is still there. Have you actually downloaded the file and run this script with the top mesh faces selected? Have you seen the UV issues or did it look okay for you? Honestly, I guess I will just give up at this point. I have figured out another sort of workaround where I make a sandbox mesh above the original, run this script we wrote (which does perfectly with the texture and UVs when the raycast is from a flat surface), then use UVToolkit to save the UVs, then drop the vertices and then restore the UVs. It works. A few extra steps but this script has been enough of a headache. Regardless, thanks for your help.
  • Undoing all transformations

    5
    0 Szavazatok
    5 Hozzászólások
    4k Megtekintések
    F
    Thanks for all that info fredo... It'll certainly come in handy
  • GUI without decorations

    2
    0 Szavazatok
    2 Hozzászólások
    3k Megtekintések
    fredo6F
    GUI like TopoShaper and my other plugins' are drawn in the viewport and constantly refreshed (at each view.invalidate). So this is a very different technique compared with HTML dialogs. Benefits: you can use a state driven approach, since the refresh is permanent you do not have problems of focus between the Sketchup window and the dialog box Drawbacks you have to draw everything with the OpenGL methods (i.e. view.draw2d()), and manage the interactivity with onLButtonDown, onLButtonDown and onMouseMove()). The GUI takes some real-estate on the Sketchup viewport. And also, it disappears when you Orbit or pan Some users don't like it, as it is 'non standard' (by the way, when looking at Web Sites, this difficult to say that there are standard in HTML too!) Note that HTML / JavaScript / CSS, you can make the programming state driven by using frameworks like Vue and Bootstrap. There is a learning curve but overall it's working fine. For the focus, this is more complex to handle, but there is a technique to force Sketchup to give back focus to itself. Fredo
  • How do I find a problematic Sketchup Material?

    16
    0 Szavazatok
    16 Hozzászólások
    10k Megtekintések
    S
    I had a similar problem where I are getting this message every time I tried to save: "*** Problems were found that could not be fixed! *** The name for CMaterial (290526) is not valid". It would still let me save the file though. I was able to solve the problem by opening the materials window and hovering over each material to look at the name. I found 3 materials that somehow had blank names. After renaming those materials the problem went away. I don't know how those blank named materials got there in the first place though, I tried to recreate the problem but SketchUp won't let you name a material with a blank name.
  • Definitions.load_from_url failing when called from an HTMLDi

    3
    0 Szavazatok
    3 Hozzászólások
    3k Megtekintések
    G
    It worked wonderfully! I was using the load_from_url method with a file:// prefix before, and it also worked... but this makes more sense. Thanks!
  • Shadow Control Possible? (solved)

    10
    0 Szavazatok
    10 Hozzászólások
    6k Megtekintések
    M
    dude, did you know that everytime you save a scene there is the option to save it with the current settings? Maybe this wasn't the case back in 2013 but there you go
  • SKM files and the API

    5
    0 Szavazatok
    5 Hozzászólások
    3k Megtekintések
    medeekM
    Most users of the plugin are SU 2018 but I've received some kickback from others so I may have to put this plan on hold and go a different direction.
  • Set the last column of a Geom::Transformation

    2
    0 Szavazatok
    2 Hozzászólások
    3k Megtekintések
    F
    You may find information on this in: "Automatic SketchUp - Creating 3-D Models in Ruby" by Mathew Scarpino Permissions may be sought directly from Eclipse Engineering LLC: Fax: (925) 262-1757 E-mail: info@eclipseengineer.com Appendix B: Advanced Geometry..................................... 391 B.3 Introduction to Transformation Matrices .........................................406 B.4 Combinations of Transformations...................................................415 B.5 Transforming Points and Vectors....................................................418 B.6 Mathematics of Combining Transformations....................................423 You may find helpful links here: http://sketchucation.com/forums/viewtopic.php?f=180&t=10142&p=573943&hilit=automatic+sketchup#p269709
  • [Obsolete] Offset On Surface (v1.0)

    48
    0 Szavazatok
    48 Hozzászólások
    26k Megtekintések
    fredo6F
    @einstein said: Hi! I know, it's a dusted thread but maybe someone will make me know. Is it possible that Offset on Surface would treat separately several neighbouring surfaces selected at one time? I mean, instead of creating one big offset from selection border, it would make several offsets, each out of one surface separately. Not sure I understand. Could you be more precise or give a concrete example. Fredo PS: you can use the Thread of ToolsOnSurface, or start a new discussion thread for this subject.
  • Ruby command to rotate or move on axis.

    2
    0 Szavazatok
    2 Hozzászólások
    3k Megtekintések
    S
    That sort of thing is done with a Transformation. Look up Transformation in the SketchUp Ruby API documentation.
  • Triangle orientation

    3
    0 Szavazatok
    3 Hozzászólások
    3k Megtekintések
    IltisI
    Thank you very much for this explanation and for the special case. It helps a lot.
  • Combining components into 1 component

    6
    0 Szavazatok
    6 Hozzászólások
    3k Megtekintések
    K
    Thanks Mitch your code worked very well once I figured out the transformation I needed. The code also left the component entities on Layer0 which was a problem for my code. The forum is an amazing source of info thanks to the many people who are willing to share their knowledge. Keith
  • Exporting vertices of every edge to csv

    3
    0 Szavazatok
    3 Hozzászólások
    3k Megtekintések
    CoreMaster110C
    Oh wow, thank you! It works great. It's actually pretty simple and straight forwards. I did hope that start and end positions allow something like this to be done. Regards, Karl
  • Offset a line Ruby command

    7
    0 Szavazatok
    7 Hozzászólások
    5k Megtekintések
    TIGT
    You can replicate an offset for a face. The code is not so simple. Install my old tool https://sketchucation.com/pluginstore?pln=TIG_Smart_offset Read the code and try to understand how it works... It's somewhat more complicated than you need, but you should be able to extract what you need...
  • [Code] Tracking Models during a Ruby session

    14
    0 Szavazatok
    14 Hozzászólások
    5k Megtekintések
    eneroth3E
    Any news on this topic? Can model specific states be safely indexed by the model object now or do we still need to use hacks such as using the DefinitionsList object id as index?
  • IFC and problem with rfa.

    4
    0 Szavazatok
    4 Hozzászólások
    3k Megtekintések
    jujuJ
    @dan rathbun said: @juju said: 1: No direct Revit import. If you want to import Revit files you'll need to export from Revit to a format that SketchUp will import. SketchUp User Guide: Using SketchUp Data with Other Modeling Programs or Tools @juju said: 2: IFC export is possible from SketchUp Pro, not sure which was the earliest version (2016?) @unknownuser said: ](http://ruby.sketchup.com/Sketchup/Model.html#export-instance_method)":jm81no8r]SketchUp Pro 2015+ added IFC export capability. thx Dan!
  • Grouping and ungrouping

    3
    0 Szavazatok
    3 Hozzászólások
    12k Megtekintések
    TIGT
    Use model.active_entities, working in model.entities IF it's not the current context will BugSplat. You can get references to the objects which result from the explode operation [any previous reference to that line etc will get lost as it explodes] exps = group.explode Gives you an array - in your case it'll probably be an array containing one line... You could then remake a group in the active_entities with group2 = entities.add_group(exps) or perhaps exps.grep(Sketchup::Edge)[0] If you want to replicate the group then after the first group is made you simply add a copy of it, then explode the original, so that the edge is now in the copied group, and it is replicated back in the active_entities... group.entities.add_line(...) group2 = entities.add_instance(group.definition, group.transformation) Now explode the original 'group' back to the edge in the active_entities... The second copy 'group2' remains, it contains the replicated edge...
  • Message for Fredo6

    12
    0 Szavazatok
    12 Hozzászólások
    5k Megtekintések
    E
    Hi fredo6, can u update XRaySelection ? ty !
  • Import DAE, place it to center and save SKP

    3
    0 Szavazatok
    3 Hozzászólások
    3k Megtekintések
    S
    Hi TIG, sorry for the late reply - I have been busy finishing another project project. I have just tested your code and it works perfectly! Thank you million times! Best regards, Stan
  • Force import as Image

    2
    0 Szavazatok
    2 Hozzászólások
    3k Megtekintések
    jiminy-billy-bobJ
    Use this : http://ruby.sketchup.com/Sketchup/Entities.html#add_image-instance_method

Advertisement