sketchucation logo sketchucation
    • Login
    1. Home
    2. TNTDAVID
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 99
    • Posts 736
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Composants dynamiques mystérieux!

      @pilou said:

      Il ne devrait pas être bien difficile de rajouter une ligne
      pour le nombre de segments d'un cercle!

      A moins d'ajouter cette fonction en ruby, les composants dynamiques ne peuvent modifier la quantité d'arrêtes d'une primitive.

      Le seul bidouille possible est de former une cercle avec un segment dynamique qui se copie suivant le choix de l'utilisateur.

      Comme les composant ne peuvent créer des faces, on peu oublier la fonction de découpe.

      En plus, il ne faut pas abuser de la fonction copie qui coûte cher en ressource. 😛

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Composants dynamiques mystérieux!

      Bien joué 😉

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Composants dynamiques mystérieux!

      @pilou said:

      Désolé mais tu as été battu par pcmoor!

      Je suis vraiment contrarié. 😢

      J'ai eu en effet la même idée que pcmoor!

      Pour des petits trous rien que des petits trous ♫ ♫ ♫ ... qui changent de taille en fonction des copies, vous pouvez faire ça:

      Trou qui change suivant les copies.skp

      Ps: J'ai crée des options visibles pour les utilisateurs comme pilou. 💚

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Composants dynamiques mystérieux!

      Hello ☀

      Voila la solution:

      Trou Solution.skp

      La fonction "Créer une Ouverture" à le dont de m’agacer car elle fonctionne une fois sur quand on l'applique à un composant.

      Une fois que ça marche tous est possible même en composants dynamiques. 😉

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      **I'm sorry to take so much time to answer you but I'm overworked.

      First tests on the cubes, all seems to work wonderfully.

      I will test your codes directly on Click-Cuisine 2 and post here an example of the revolutions that it will bring to my tool.

      I do not know how to thank you because your help allows me to move forward as never before.

      See you soon.**

      David

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      **Great! Your two examples work perfectly. ☀

      TIG with the method, I must manually select "Box-1", so that "Box-2", replaces it.

      How to automatically select all the "Box-1" components, even those that are nested in a piece of furniture?

      And How to switch from "Box-2" to "Box-3"?

      Sdmitch your code is very surprising! 👍

      All "1-Box", "2-Box" and "3-Box" components are selected and replaced automatically.

      This works for all components at the first level of the structures list.

      For "Boxes" that are inside a group or components, this does not work anymore.

      How to solve the problem ?

      Sorry, I forgot to specify this detail. 💚

      The objectives are more and more precise:

      1 - The user clicks on the icon "Change the Handles", to replace all the handles present in all the furniture. ( We are almost there. )

      2 - If the user no longer wishes to modify some handles, he must select the furniture that he no longer wishes to modify then click on the icon "Freezing the Handles".
      ( This action must rename the definition of all the handles present inside the selected furniture. )

      Rename Definitions = Prevent the first code from acting on the handles.

      How do you write this method?

      Great thanks to both of you for your help.

      See you.

      David**

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      **OK TIG 😉

      How to do the same for components?

      Example:

      I have 3 boxes, "1-Box", "2-Box", "3-Box", they are in the folder "Plugins/ Click-Cuisine2/Components".

      I want to create an icon that calls a method of this type:

      1st Click

      Selects all components with the definition "1-Box ##", and replaces with "2-Box", which is in the "Components" folder.

      If no component with the definition " 1-Box" was found, send the message, "Import a Clik-Cuisine 2 furniture, to replace these components ".

      2nd Click

      Selects all components with the definition "2-Box ##", and replaces it with "3-Box".

      3rd Click

      Selects all components with the definition "3-Box ##", and replaces with "1-Box".

      Final objective:

      Click-Cuisine 2, will offer more than 20 IKEA handles that I want to interchange with one click.

      This can be done in Dynamic Components, but it is not suitable for such a large number of 3D models.

      If you can help me write this method, I would be very glad. ☀**

      thank you

      David

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      Thank you very much! 😄

      Moving from one material to another with Click-Kitchen 2, will be much faster and easier with your code. 😉

      I would make a small demo as soon as the code is applied to the plugin.

      Ps: My error was indeed the path to the materials file.

      File.join (File.dirname (__ FILE __). Gsub ('\\', '/'), "TNT_ClickCuisine2 / Materials /"
      

      Corrected like this:

      File.join (File.dirname (__ FILE __). Gsub ('\\', '/'), "Materials /"
      
      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      The plugin is in the right place!

      I think the problem has to be tied to something else.

      Can you share your "rbz" file?

      Your soluition is great and very interesting.

      Thank you

      David

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      The textures should not be in the folder, "C:\Users\Dada\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp\Plugins\TNT_ClickCuisine2\Materials" ? 😲

      If not, in what folder should the images be?

      Thank you

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      I wrote the code in a .rb file and then I called it with an icon.

      When I click on the icon, 3 black materials are created but no "jpg" image is imported.

      You can download the file.rbz, below:

      TNT_ClickCuisine2.rbz

      Here is the code:

      module ClickCuisine2
      
        class << self
        @@path_to_resources = File.join(File.dirname(__FILE__), 'Resources')
      
        def materials
            mat_names = ['60x40','80x40','100x40']
            materials = Sketchup.active_model.materials
            mat_names.each{|mn| materials.add(mn) unless materials[mn]}
            mat_folder = File.join(File.dirname(__FILE__).gsub('\\','/'),"TNT_ClickCuisine2/Materials/")
            @last ||= '0'
            @last=='3' ? @last='1' ;  @last=@last.next
            for mn in mat_names
            material = materials[mn]
            material.texture = mat_folder + "#{@last}-#{mn}.jpg"
        end
      end
      
      
      if !file_loaded?(__FILE__)
      
              su_menu = UI.menu("Plugins")
      
              cc_menu = su_menu.add_submenu(%Q(Click_Cuisine2))
      
              tb = UI;;Toolbar.new(%Q(Click-Cuisine2))
      
              command1 = UI;;Command.new("Nex Material"){ ClickCuisine2.materials }
      
              command1.small_icon = File.join(@@path_to_resources,"add_00.png")
      
              command1.large_icon = File.join(@@path_to_resources,"add_00.png")
      
              command1.tooltip = %Q(Nex Material)
      
              command1.status_bar_text = %Q(Nex Material)
      
              command1.menu_text = %Q(Nex Material)
      
              cc_menu.add_item(command1)
      
              tb.add_item(command1)
      
              tb.restore
      
              file_loaded(__FILE__)
      
             end
          end
       end
      

      Thank you in advance for your help.

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Replace Several Textures?

      **Hello sdmitch,

      Thank you for your help !

      I tested the code with the Ruby console which returns "nil".

      http://i.imgur.com/f0tlM9P.jpg

      Can you tell me for what?

      Can you explain how your code works?

      Thank you

      David**

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • Replace Several Textures?

      **Hello, ☀

      I'm currently developing Click-Cuisine 2 and I want to bring a very important new feature.

      This feature should allow multiple materials to be replaced with a single click on an icon.

      The goal is to display all IKEA colors in any kitchen project by a simple click.

      It remains for me to discover how to write the method and I need your help to succeed. 😉**

      Explanation Stage by Stage of my final goal:

      **1st click on the icon:

      The materials with the pictures, "1-100x40.jpg", "1-80x40.jpg", "1-60x40.jpg" ....

      Which are applied on furniture are replaced by:

      The images, "2-100x40.jpg", "2-80x40.jpg", "2-60x40.jpg" ....

      These images are in the folder "Plugins\TNT_ClickCuisine2\Materials"

      2 nd Click on the icon:

      These are the images, "3-100x40.jpg","3-80x40.jpg", "3-60x40.jpg", which are loaded.

      This will allow the different colors to be displayed quickly and easily on all furniture.

      Here is the organization of the Materials file:

      http://i.imgur.com/iqQgLQK.jpg

      I need your experience to find the simplest method possible!

      1.How would you proceed?

      Here's the little I know about the materials:

      Model = Sketchup.active_model
      Materials = model.materials
      Material = materials.add ('100x40')
      Material.texture = "C; /Materials/1-100x40.jpg"
      Texture = material.texture
      

      This creates a material with an image from a raw path.

      2.How to do the same with a path of type, " Plugins\TNT_ClickCuisine2\Materials " ?

      3.Then how to replace the image of the materials?

      4.Is this the right approach or do you have a simpler solution?

      Thank you in advance for your help.

      David**

      posted in Developers' Forum
      TNTDAVIDT
      TNTDAVID
    • RE: Base et colonne

      Petite info au passage:

      Le SKP6 est à éviter pour les composants dynamiques, car ils fonctionnent uniquement à partir de la version 7.

      Pour de simples composants le format SKP6 permet une compatibilité beaucoup plus large comme le dit pilou. 😛

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: SKETCH UP HEROES 2017

      Supère nouvelle car vous commencez sérieusement à me manquer. 💚

      Je peu préparer la présentation de ces Plugins:

      • Click-Cuisine 2 ( GAMME METOD IKEA 2017 )

      • Click-Window 3D Pro ( VERSION 3 )

      • 3D Door Click Pro ( EN AVANT PREMIÈRE )

      A plus

      David

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Les egyptiens plus précis que SketchUp

      @sergio said:

      Me disais bien qu'il y avait un air de famille!

      Oui en effet E.T est mon petit frère. 😆

      Il fait tomber plus de nanas que moi. 👍

      Non pas deClick-Pyramide temps que je n'ai pas fini, Click-Cuisine 2, 3D Door Pro et la mise à jours de Click-Window 3D.

      Je suis sur 10 000 trucs en même temps, j'ai pas le temps de souffler. 💚

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Les egyptiens plus précis que SketchUp

      Pas besoin d'E.T

      http://i.imgur.com/lRPnd6M.jpg

      Pour quoi pas une ou plusieurs civilisations plus évolués que la notre disparus à jamais?

      La terre à plus de 4,5 milliards d'années ou d’innombrables apocalypses ont eu lieu.

      Ce n'est pas un poisson d'avril. 💚

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • Les egyptiens plus précis que SketchUp

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Exporter plusieurs modèles DAE

      **Ok je vais être plus concret! 💚

      Avec Click-Cuisine j'ai réalisé plus de 4000 meubles de cuisine IKEA classés par coloris.

      Voici l'exemple pour Bodbyn Blanc cassé:

      http://i.imgur.com/ZwuK2vO.jpg

      Le but est de créer des bibliothèques pour Sweet Homme 3D:

      http://i.imgur.com/RGLq0j9.jpg

      Sans les Plugins ce travail pourrait prendre 3 jours par coloris, soit 3 x 20 Coloris = 60 Jours. 😲

      Pour cette raison, je n'ai à présent proposé qu'un seul coloris pour Sweet home 3D.

      L’intérêt des Plugins est de faire les 20 coloris en 4 Heures. 😛

      Le Plugin "Save_all_components", permet de créer un dossier de tous mes composants en moins d'une minute:

      http://i.imgur.com/yHrdR7w.jpg

      En suite "Export Batch DAE", converti tous le dossier SKP en DAE:

      http://i.imgur.com/GsCJYRd.jpg

      Pour finir, j'utilise "FurnitureLibraryEditor-1.20.jar", pour créer une bibliothèque pour Sweet Home 3D :

      http://i.imgur.com/n35R3nq.jpg

      Conclusion

      Prendre le temps de chercher les bons outils permet d'en Gagner. 😆**

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • RE: Peindre les rêves!

      Je dirais plutôt des cauchemars. 💚

      posted in Français
      TNTDAVIDT
      TNTDAVID
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 36
    • 37
    • 11 / 37