sketchucation logo sketchucation
    • Login
    1. Home
    2. Matt666
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 75
    • Posts 822
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Help - Ruby to delete all faces w/o affecting edges?

      Hi !

      @johnsenior1973 said:

      Just turn off the edges (View-Edge Style-Display Edges), then select all the faces and delete them. Then display the edges again and you should be left with the wireframe only.

      Your method works only if model is in just one level. But faces can also be inside components or groups (complex entities).

      Here is a script that deletes all faces in the model. 😉


      Menu plugins, "delete faces"

      posted in Developers' Forum
      M
      Matt666
    • RE: Context click for layer window

      Pending the update... ^^
      Tell me what kind of options you would like to have, I will see what i can do...

      EDIT : You can lock just Components and Groups. the right-click menu for locking layer content is activated only if it contains these kind of entities.


      layer_scr.rb

      posted in SketchUp Feature Requests
      M
      Matt666
    • RE: Context click for layer window

      @unknownuser said:

      but I am afraid, ruby doesn't give you that kind, does it?

      Yes. But we can re-write the layer window... Why not ? 😉 The problem is I never try to write a html window... 😲

      @unknownuser said:

      but the layer lock affects more than the entities in one layer.

      When a component in a layer is into a component with the layer of the selection, component inside is inaccessible... A component instance may have entities on several layers...

      But there was a bug and it's fixed in the first post.

      posted in SketchUp Feature Requests
      M
      Matt666
    • RE: Faces area in a group ?

      De rien mon initiateur de Ruby 😉

      posted in Developers' Forum
      M
      Matt666
    • RE: Faces area in a group ?

      Hi TIG!
      This is the second time you corrected me on this error! 😆 🤣

      posted in Developers' Forum
      M
      Matt666
    • RE: Vray light

      Canadiens ? Ou sont-ils !!! Les mauvais élèves français ont besoin d'une traduction !!! 😄 😆
      Perso, je vais plutot pas le faire, voir ma signature... 😳 Hum hum.

      posted in Français
      M
      Matt666
    • RE: Faces area in a group ?

      Salut Didier !
      Si tu exploses le groupe, calcules l'aire totale, et recompose le group ?
      And if you explode group, calculate total area of the faces, and re-create group ?

      Petit truc pour afficher l'aire totale des face du groupe :
      Smt to show the total area of all the faces in a group :

      
      def face_area
      	model = Sketchup.active_model
      	n = model.active_entities.count
      	cn = 0
      	sel = []
      	
      	group = model.selection[0]
      	group.explode.each do |e|
      		if e.typename == "Face"
      			cn += e.area
      		end
      	end
      	UI.messagebox("\nAire totale des faces du groupe ; " + cn.to_s + "unités")
      	while(n < model.active_entities.count)
      		sel.push(model.active_entities[n])
      		n += 1
      	end
      	model.selection.add(model.active_entities.add_group(sel))
      end
      

      ^^

      posted in Developers' Forum
      M
      Matt666
    • RE: Vray light

      Sinon, va voir directement dans le forum de vray avec su, ici...

      posted in Français
      M
      Matt666
    • RE: [Plugin][$] Tools On Surface - v2.6a - 01 Apr 24

      @gaganraj said:

      for some reason after installing the new script, my entire Tools On Surface tool box disappeared?!

      Go to the menu "Window/Preferences/Extensions/" and check the fredo line !

      posted in Plugins
      M
      Matt666
    • RE: Zoom factor

      Ok !! Thanks to both of you (Soory for the translation !!)

      posted in Developers' Forum
      M
      Matt666
    • Zoom factor

      Hi all !
      In the default ruby API help, there is an information doesn't work.
      In the view class, zoom method.

      I can't give a scale factor zoom to a view ❗

      Sketchup.active_model.active_view.zoom 2
      

      Message :

      Error; #<TypeError; (eval);91;in `zoom'; wrong argument type (expected Sketchup;;Entity)>
      

      Is it a free SU problem ? Or an API problem ?
      Thank you.

      posted in Developers' Forum
      M
      Matt666
    • RE: Vray light

      Peut-être que la face du rectangle dessiné est inversée...
      Lorsque je créé un rectangle de lumière, je rentre dans le composant et j'inverse la face du rectangle.

      Autre chose : Ne créé jamais de rectangle de lumière dans un composant ou un groupe existant. C'est peut être plutot ça ton problème ! 😉

      posted in Français
      M
      Matt666
    • RE: Plan de face

      Salut Didier !

      @unknownuser said:

      Ce qui serait cool ça serait d'implémenter la syntaxe Autocad dans le Linetool à la place de la boite de dialogue: [...] Ca reviens à faire un petit analyseur de texte dans la fonction "OnUserText" de l'outil, et quelques calculs géométriques par derrière.

      J'avais aussi pensé à faire comme ça, mais je butais sur l'esprit coincé 2D de cette méthode... La boite de dialogue sert surtout à donner le plan 3D de la ligne polaire à créer. C'est pour ça que j'ai préféré !

      @unknownuser said:

      @distance<angle,z coordonnées cylindriques
      @distance<angle1<angle2 coordonnées sphériques

      Mais qu'est ce que c'est que ça !!!! 😲 😲 😲 Merde ! Là je sèche totalement ! Je connaissais pas du tout !

      @unknownuser said:

      Je n'ai pas trop réfléchi à la question mais ça serait peut-être assez facile de le faire virtuellement sur le plan XoY puis de reprojetter sur la face considérée.

      Ok. faut voir ! Faut juste retrouver la bonne distance... Je vais tester, c'est une bonne idée !

      Merci pour tous ces conseils Didier !

      posted in Français
      M
      Matt666
    • RE: Two Face 'material'

      Observers.... I've never used these tools... I will try 😄
      Thank you Rick !

      posted in Developers' Forum
      M
      Matt666
    • RE: Plan de face

      Salut Didier !
      Merci pour cette excellente réponse, ça va beaucoup m'aiguiller !

      @unknownuser said:

      Mais au fait, qu'est-ce que tu entends par "retrouver le plan 3D d'une face", puisque face.plane te le donnes ???

      Oui, c'est pour ça que j'ai posé cette question. Je ne savais pas que faire de ce résultat. 😄
      Le but étant une demande de Remus pour le plugin PolarLine. il aimerait pouvoir créer une ligne polaire sur une face. Mais ça me parait un peu trop balaise pour moi... 😲 😲

      Merci encore Didier !

      posted in Français
      M
      Matt666
    • RE: Autocad

      A savoir que le site smustard regorge de scripts (payants, certes) pour faciliter la transition Acad/Su...

      posted in Français
      M
      Matt666
    • RE: [Plugin] Polar line - 20110525

      Thank you 😉 😄

      @remus said:

      More update ideas: perhaps an option to draw the line on the plane of a selected face? it would make drawing weird lines a lot easier.

      Why not, but give an angle depending on what Trigonometric origin?
      Originally trigonometric drawing or side of the longest edge of the selected face ?

      @watkins said:

      Perhaps I'm being a little dense, but why would you want to rotate the line after creation?

      To creat a 3d polarline ! I think it's too complicated (not to develop, but calculate two angles in two different 2d plans). Or easier to rotate yourself after line creation.

      @unknownuser said:

      polar grid....

      Salut Malaise ! Qu'entends-tu par là ? what do you mean by this?

      posted in Plugins
      M
      Matt666
    • Plan de face

      Salut à tous !

      Petite question : J'essaie de retrouver le plan 3D d'une face via le ruby. Il faut juste faire face.plane ! Bref c'est pas important. Le problème est que ça retourne une liste de quatre points !!

      Est-ce qqn sait ce que signifient ces quatre points ???Face sur un plan simpleFace sur un plan un peu plus compliqué...
      Si qqn est balaise en géométrie, ça m'aiderait vachement (ou en tout cas plus fort que moi, ce qui ne doit pas être bien compliqué...) !!

      Merciii

      posted in Français
      M
      Matt666
    • RE: Distance, angle

      J'y ai pensé, effectivement.
      Plutot une rotation de la ligne polaire... Mais j'ai peur d'avoir à faire à une usine à gaz par la suite... un peu trop compliqué...
      Sans titre-1.jpg
      Dites moi ce que vous en pensez, si vous trouvez cela pratique, pourquoi pas !

      posted in Français
      M
      Matt666
    • RE: [Plugin] Polar line - 20110525

      Yep. you also can manage these plugins yourself... this is what i do.... For the moment i hope !!

      In another post, an improvent has been asked...
      a rotation of the line after creation.
      Like that :Sans titre-1.jpg

      What do you think about that ?
      Because I don't want this plugin become too complicated 😞

      posted in Plugins
      M
      Matt666
    • 1 / 1