Menu

#14 Global change color plugin

open
nobody
None
1
2023-12-28
2016-01-07
mchnz
No

This plugin provides a dialog with two standard Java Swing color choosers for selecting a from-color and a to-color. The plugin tracks down and changes colors for walls, floors, and furnature. The choosers have been enhanced to include a tab for "Colors in use" that displays a swatch for each color used in the model. Each color in-use swatch includes a hover tooltip that lists where the color is used.

1 Attachments

Discussion

  • mchnz

    mchnz - 2016-01-07

    I've added a screenshot. I should also add that undo has not been implemented, so backup your model before using this plugin.

     
  • mchnz

    mchnz - 2016-01-08

    I fixed the code that changes the colors for furniture materials set to their default colors.

    I also set the opacity of buttons to attempt to fix the lack of fill-color in Colors-in-use swatches on Windows 10 (but don't have a Windows box to test it on).

     
  • mchnz

    mchnz - 2016-01-11

    Updated with a revised user interface that lists where the selected color is used.

    Fixed cases where the plugin attempted to change colors when textures were already defined.

     
  • mchnz

    mchnz - 2016-01-11

    Latest screen shot for v0.3

     
  • mchnz

    mchnz - 2016-01-12

    Implemented undo/redo and bumped the version number to 1.0.

     
  • mchnz

    mchnz - 2016-03-04

    Fixed alpha (transparency) handling bug that made items invisible when moving to version 5.2 of SH3D. Added a feature where changing a color to itself fixes the invisible items created by this bug (the alpha is set to the alpha of the new color). In all other cases the old/existing alpha of the item color being changed is always preserved.

    Fixed an issue where the plugin would not respect that a texture had been set and the color should therefore remain unchanged.

     
  • Joshua Miller

    Joshua Miller - 2016-10-13

    Hi,
    Please, I don't find a .sh3p file into the pack "ChangeColorPlugin-1.1.jar"
    How can I install it?
    Thanks.

     
    • mchnz

      mchnz - 2016-10-13

      A .sh3p is actually a jar file. So you install the ChangeColorPlugin-1.1.jar into the same place you would put the .sh3p file.

       
  • Joshua Miller

    Joshua Miller - 2016-10-14

    Ok. but I copy the .jar file into the folder

    C:\Program Files\Sweet Home 3D\jre8\lib\ext

    or into the folder

    C:\Program Files\Sweet Home 3D\lib

    both folders have .jar files

    Thanks.

     
    • mchnz

      mchnz - 2016-10-14

      Copy the jar to eteks/sweethome3d/plugins folder.

      On Windows this might be:
      C:\Users\user\AppData\Roaming\eTeks\Sweet Home 3D\plugins
      or
      C:\Documents and Settings\user\Application Data\eTeks\Sweet Home 3D\plugins

      On Linux:

      ~/.eteks/sweethome3d/plugins

      Or if you rename the ChangeColorPlugin-1.1.jar to ChangeColorPlugin-1.1.sh3p, then on Windows and Mac double clicking might install it automatically.

      See: http://www.sweethome3d.com/pluginsUserGuide.pdf for further details.

      I forgot to change the type to .sh3p because I'm a Linux user and it makes little difference what it's called on the Linux platform (because on Linux it needs to be manually installed anyway).

       
  • Joshua Miller

    Joshua Miller - 2016-10-15

    It is definitely easier to rename the .jar file to .sh3p and make double-click on it.
    Thank you very much for your fast help. This software is exceptional.

     
  • mchnz

    mchnz - 2018-05-08

    Fixed a index out of bounds error if the array of materials in a model is shorter than the array of default materials (seem to happen after I deleted lots of objects from a home).

     
  • Daniele

    Daniele - 2022-04-26

    I have fixed the version number within the plugin file and changed the extension to sh3p.

     
    • mchnz

      mchnz - 2022-04-27

      Thanks.

       
  • Dec

    Dec - 2022-09-05

    Daniele, you seem to have been a busy, busy, boy! :-)

     
  • Dec

    Dec - 2022-09-09

    seems like a useful PI

     
  • mchnz

    mchnz - 2023-12-28

    I've attached a new version of the ChangeColorPlugin with a ApplicationPlugin_fr.properties and changed the code to lookup the name of the menu in the properties file.

    I've created a SH3D-ChangeColorPlugin repository at github to better document and track the source code.

    I used google to produce some translations, so the French might be mangled. Feel free to review and suggest amendments to the ApplicationPlugin_fr.properties (github.com) file.

    As well as here at sourceforge, I'll also tag and release at github, the current release is now v1.3 Outils (github.com)

     

Log in to post a comment.

MongoDB Logo MongoDB