How dumb are the new Materials options?

You cant tell what color you’re getting. The names dont even make sense. Why cant we just go back to the old materials library? Can Trimble please stop doing stupid things?

Totally agree. For now, the workaround is to modify the Materials tab yourself by copying the old materials folder back in.

0 Couleurs web.zip (404.4 KB)

here, flat web colours.

Yes 2024 didn’t have this issue. Came with later versions. When using the eye dropper to find out which material was used, it doesn’t switch to the material any longer. You need to again drag and drop it inside your in model section to be able to have it selected and then make changes to it e.g. scale, hsb slider, open in photoshop editor etc…so annoying another fix hopefully for 2027.

Ah and now I need to buy a new computer because intel will not be supported any longer 2027 ongoing. Bummer…so dealing with older bugs or investing in a new Mac to get more bugs. Hard decision…

You definitely don’t need to do that in the Windows interface.

That will be fixed in the 2027 version for you on Mac I’m sure.

As a colorblind person i totally agree with you.
Those color names are ffd up and, at leat for me, make no sence.
So yes, i hardly use them new materials and have the old onces (v22) attached.

Yes nice for those who will have a silicon apple…
Since I have an Intel and SketchUp 2027 will no longer support intels I would have to buy a new Mac with silicon version. So while the bug maybe fixed unfortunately for many it wont who will still work with Intel surfaces…well it is what it is…:roll_eyes:

Ah, that’s unforunate. Well I guess you’ve done well out of a 5+ year old mac.

I remember how annoyed I was when my apple watch stopped being supported and I had no option but to use an old phone or buy a new watch

Here is a script that will create standard mateirals from the list of Ral classic colors on wikipedia.

They will appear in your mateirals folder providing it’s the default.

Paste it straight into extensions, developer, ruby console

require 'cgi'
require 'net/http'
require 'uri'
require 'fileutils'

module RalClassicMaterials
  PAGE_URL = 'https://en.wikipedia.org/w/index.php?title=List_of_RAL_colours&action=raw'
  USER_AGENT = 'SketchUp RAL Classic material importer/1.0'
  ColorRecord = Struct.new(:code, :name, :hex)

  def self.fetch_wikitext
    uri = URI(PAGE_URL)
    request = Net::HTTP::Get.new(uri)
    request['User-Agent'] = USER_AGENT

    response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
      http.request(request)
    end

    raise "Wikipedia returned HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess)

    response.body.force_encoding('UTF-8')
  end

  def self.extract_colors(wikitext)
    title_match = /\|\+\s*All colours\s+defined in RAL Classic/.match(wikitext)
    raise 'Could not find the RAL Classic overview table' unless title_match

    table_start = wikitext.rindex('{|', title_match.begin(0))
    table_end_match = /^\|}\s*$/.match(wikitext, title_match.end(0))
    raise 'Could not isolate the RAL Classic overview table' unless table_start && table_end_match

    table = wikitext[table_start...table_end_match.end(0)]
    rows = table.split(/^\|-\s*$/)

    records = rows.filter_map do |row|
      cells = row.split('||')
      code_match = /RAL\s*(\d{4})/.match(cells[0].to_s)
      next unless code_match

      hex_cell = cells.find { |cell| /\A\s*#[0-9A-Fa-f]{6}\s*\z/.match?(cell) }
      next unless hex_cell

      name = cells[1].to_s.sub(/\A\s*style="[^"]*"\s*\|/, '')
      name = name.gsub(/\[\[(?:[^\]|]*\|)?([^\]]+)\]\]/, '\\1')
      name = name.gsub(/<[^>]*>/, ' ').gsub(/'{2,3}/, '')
      name = CGI.unescapeHTML(name).gsub(/\s+/, ' ').strip
      next if name.empty?

      ColorRecord.new(code_match[1], name, hex_cell.strip.delete_prefix('#').upcase)
    end

    records = records.uniq(&:code)
    if records.length < 200
      raise "Only found #{records.length} RAL Classic colours; refusing to export an incomplete set"
    end

    records
  end

  def self.new_output_directory(parent)
    base = File.join(parent, 'RAL Classic Materials')
    path = base
    suffix = 1
    while File.exist?(path)
      path = "#{base} #{suffix}"
      suffix += 1
    end
    Dir.mkdir(path)
    path
  end

  def self.user_materials_directory
    version = Sketchup.version.to_i
    year = version < 100 ? version + 2000 : version

    if RUBY_PLATFORM.include?('darwin')
      support_root = File.join(Dir.home, 'Library', 'Application Support')
    else
      support_root = ENV.fetch('APPDATA')
    end

    File.join(support_root, 'SketchUp', "SketchUp #{year}", 'SketchUp', 'Materials')
  end

  def self.run
    records = extract_colors(fetch_wikitext)
    parent = user_materials_directory
    FileUtils.mkdir_p(parent)
    output_dir = new_output_directory(parent)
    model = Sketchup.active_model
    materials = model.materials
    saved_paths = []

    model.start_operation('Import RAL Classic materials', true)
    begin
      records.each do |record|
        material_name = "RAL #{record.code} - #{record.name}"
        material = materials[material_name] || materials.add(material_name)
        material.texture = nil if material.texture
        rgb = record.hex.scan(/../).map { |part| part.to_i(16) }
        material.color = Sketchup::Color.new(*rgb)
        material.alpha = 1.0

        safe_name = record.name.gsub(/[<>:"\/\\|?*]/, '_')
        filename = "RAL #{record.code} - #{safe_name}.skm"
        path = File.join(output_dir, filename)
        raise "SketchUp could not save #{filename}" unless material.save_as(path)
        saved_paths << path
      end

      model.commit_operation
    rescue StandardError
      model.abort_operation
      FileUtils.remove_entry(output_dir) if File.directory?(output_dir)
      raise
    end

    UI.messagebox("Saved #{saved_paths.length} RAL Classic materials to:\n#{output_dir}\n\nThe materials were also added to the active model.")
  end
end

RalClassicMaterials.run

I feel your pain, being in the same spot with my 2019 16” MBP. Apple is ending support, and it seems Trimble took that as their lead to abandon those of us who hadn’t planned to upgrade yet. I’m retired and can no longer justify a computer as a business expense! Gotta save up my Pennie’s!

Thank you for your sympathy :mending_heart: We have survived years of SketchUp Bugs we can do this probably a while longer :grin: Maybe we designers will become all redundant next year and it won’t matter…you enjoy your retirement! I will need to think hard wether to invest 2.7 K on the new M5…

2016 MBP here, SKP 2025 is the last supported year that will run on this machine. That said 11 years is a GREAT run for a laptop, works out to $400 CDN/year incl taxes and AppleCare.

*That’s assuming it doesn’t die of old age in the next 14 months…

I am from germany, using Sketchup since nearly 20 years. I knew nearly all the tricks and worked quite fast on windows.. Since i have my new macbookPro with SKP 2026 i have the same issue. What the hack did the do? Its worse than ever.. Simple editing of a Material is not possible. I use the Command Button to get it, but cannot change the colour. WTF. Does anybody can help me out? Thank you, best Klaus

The native tags and materials panels (and scenes… and components… and the tray basically) and are borderline unusable. There are a lot of suitable plugins for both though.

I think it may be that you are trying to edit the original materials, which it won’t let you do. You can only edit the colors in the “Colors in Model” list, so you have to use a standard color once, and then you can edit it in the Colors in Model list.