sketchucation logo sketchucation
    • Login
    1. Home
    2. Didier Bur
    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!
    Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More
    Offline
    • Profile
    • Following 0
    • Followers 3
    • Topics 167
    • Posts 1,507
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Messagebox within a callback fails

      @TIG
      Thanks for the hint, unfortunately it doesn't help, I'm getting the correct values for face and dist outputs. BUT, I tried to call message box in others callbacks, it worked in every case.
      So what was wrong with this particular callback ? Guess what, one CANNOT call a UI.messagebox after a webdialog (or html dialog) closes, modal or non-modal.
      There's some kind of logic here...

      This doesn't work:

      
      # callback cancel
      @web_dialog.add_action_callback("dlg_cancel_settings") { |d, p|
      	@web_dialog.close()
      	r=UI.messagebox("Are you sure ?",MB_YESNO)
      }
      

      This works:

      
      # callback cancel
      @web_dialog.add_action_callback("dlg_cancel_settings") { |d, p|
      	r=UI.messagebox("Are you sure ?",MB_YESNO)
      	@web_dialog.close()
      }
      
      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • RE: Messagebox within a callback fails

      Thanks Fredo,

      No, that's not the real code, simplified for readability.

      En fait, "face" est une variable d'instance @face dans mon vrai code, j'ai simplifié pour poster ici.
      Je n'ai toujours pas solutionné le pb, j'ai mis des mouchards partout pour tracer ce que fait le callback, et dès que la messagebox est appelée, plus rien...
      Je vais calquer ma manière de faire sur la tienne 😉

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • Messagebox within a callback fails

      Hi all,

      I'm encountering this problem:
      When writing a callback function, everything goes well until a messagebox call: the SU window suddenly minimizes to the taskbar 😕 , the message box doesn't pops-up and the callback stops 😲

      Something like this:

      @web_dialog.add_action_callback("wcCreatePlace") { |d, p|		
      			# Possible opening ?
      			pushPullDoable=validateFace4Pushpull(face)
      			if pushPullDoable
      				dist=findWallFaceDistance(face)
      				if dist
      # EVERYTHING OK UNTIL HERE
      					rep=UI.messagebox("Open the wall ?",MB_YESNO)
      					face.pushpull(-dist) if rep == IDYES
      				end
      			end
      		}
      

      Anyone encountered this before ?

      posted in Developers' Forum
      Didier BurD
      Didier Bur
    • [Plugin] Dynamic sky & ground

      Hi all,
      My latest extension is now available at the EW here: http://extensions.sketchup.com/en/node/6611

      Have Fun 😉

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Shadow settings plugin

      Here is the interface of the "coming soon" extension:

      settings.jpg

      Note that in this version, the ground color variation is also supported 😉

      EDIT: just available now at the EW here: http://extensions.sketchup.com/en/node/6611

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Shadow settings plugin

      @inlimine:
      No need to unpack anything. Just unzip skyColor.zip to get the RBS file. Put that RBS file in your Plugins folder. Not sure where it is on a Mac, but it should be somewhere like:
      ~/Library/Application Support/SketchUp/SketchUp 2018/SketchUp/Plugins

      To know where this folder is, open the Ruby console and type:
      Sketchup::find_support_file("Plugins")

      I will make this script a "regular" extension soon 😉
      Regards

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Shadow settings plugin

      Hi all,

      Here is the first version of what could be an extension. I need your view about it, so here is how to install:

      • unzip the file skyColor.zip in your Plugins folder: if you don't know where it is, open the Ruby console and type Sketchup.find_support_file("Plugins")
      • restart SketchUp

      You should now see a new menu in your View menu:
      menu.jpg

      Select the Physical sky menu and select Settings:
      settings.jpg

      Settings are quite self explanatory:

      2 sky types provided: solid color or a gradient from horizon color to sky color
      Dynamic sky: select Yes if you want to automatically modify the sky colors when changing time or date in the shadow palette
      Update style: select Yes if you want to automatically update the style when changing sky colors.

      Set sky color temperature: modify the sky colors according to the shadow palette, if dynamic sky is disabled.

      sunrise.jpg
      noon.jpg
      sunset.jpg

      The colors of the sky are based on a Kelvin temperatures table, from 4000K at sunrise, 7000K at noon, to 3700K at sunset.
      Sky will be a blueish black at night.

      BTW, I don't see a way to alter the color of the shadows, because sky color and horizon color are exposed in the API, and shadow color is'nt. 😞


      skyColor.zip

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Shadow settings plugin

      Hi Inlimine,
      I have just a question to make things clear 😉 See below.

      sky_shadow color.jpg

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Shadow settings plugin

      Hi Inlimine,
      Using SU since 2004, and a great amount of plugins, sorry but I can't remember of such a plugin 😞
      Maybe I'll write it some day... it would also be a nice addition to my "ShadowInfo" plugin 😉

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: 3pt Window Dresser

      Hi all,
      Nice addition ! This give me some idea for enhancing my next plugin:
      I'm actually working on (yet another) window maker, full of options, among them you'll have the possibility to add a "screen", opened at a parametric percentage of the height of the casement.
      Below is a sliding window, 2 parametric sashes with parametric muntins, no shutter, no "push bar", all materials parametric:
      sliding with screen.jpg

      Interface:

      sliding params.jpg

      You will also have the possibilty to create window components based on a face, no matter its shape 😉

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Arcs Circles +

      @lothian:
      or you can change the number of segments after the ellipse is drawn: select it and enter your number in the entity info palette.

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: Annoying banner on API doc site :-(

      Thanks TIG !!!

      posted in Plugins
      Didier BurD
      Didier Bur
    • Annoying banner on API doc site :-(

      Hi all,

      Since a few days the SU Ruby API doc site seems to have changed its banner, so now I can't select among "Classes", "Methods", "Constants" links that were before above the "Search" field. No way to hide the banner, this is very annoying 😞
      Anyone encountered this too (on Firefox) ?

      apidoc.jpg

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [REQ] ON\OFF shadows in all scenes

      Hi,

      @rv1974: you can also use my ScenesTools plugin here: https://extensions.sketchup.com/fr/content/scenes-tools

      In your case use this option: Display > Scenes Tools > Shadows > Copy-paste from current scene to all scenes.
      There are many more options for all parameters that make up a scene 😉
      Regards,

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] ExtrudeTools - Full Set

      If it takes you time to answer several question, ask yourself how many hours TIG spent writing this plugin, or draw your extrusion by hand, you surely will go faster 😉

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: [Plugin] Physically-Based Rendering - v1.5.9 - 19 Apr. 2020

      @samuel_t:
      Bonjour, merci pour ce plugin, par contre depuis que je l'ai installé, la fenêtre Chromium s'ouvre à chaque démarrage de SketchUp, avec le dernier modèle chargé, c'est un peu gênant. La caméra est assez limitée aussi, le zoom se bloque.
      Petite question: est-ce que la caméra dans Chromium est gérée via une caméra 3js? Auquel cas ça serait assez simple je crois d'améliorer les choses.

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: A decent Sketchup Material Manager

      Hi,
      You can PM me a doc, or ods, or rtf, or pdf. All these will be just fine 😉
      Regards

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: A decent Sketchup Material Manager

      @ sketchvolution:
      I just found a bug this morning: don't worry if some of the thumbnails are not found in the panel, this is fixed.
      thumbnailsnotfound.jpg

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: A decent Sketchup Material Manager

      Hi Sketchvolution,

      Here is the first step to a component organizer that will (I hope) speed up your work.
      Install it the usual way. After installation, select Toolbars in the Display menu, and tick the "Components Cleaner" checkbox.
      You'll get a toolbar like this:
      cc_toolbar.jpg
      Click on the Settings icon and then on the Help button to view a quick-start pdf.
      Let me know what you think, please report bugs and what can be enhanced. 😉

      !["Rename materials" dialog](/uploads/imported_attachments/jdAU_cc_materials.jpg ""Rename materials" dialog")


      ComponentCleaner_v0.0.1.rbz

      posted in Plugins
      Didier BurD
      Didier Bur
    • RE: A decent Sketchup Material Manager

      @sketchvolution:

      I have sometimes the same problem as yours with 3DWE components. So I think I can do a plugin that will help you through steps 1 to 5 in a matter of a few clicks.
      I don't promise anything, but I'll try 😉
      Regards,

      posted in Plugins
      Didier BurD
      Didier Bur
    • 1 / 1