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
[Ruby API] Bug Mac - Sketchup.get_resource_path
-
Sketchup.get_resource_path "Materials.strings"returns an empty string on Mac in SU8. Same applies to "Styles.strings" etc.
Sketchup.get_resource_path '' returns:
'/Library/Application Support/Google SketchUp 8/SketchUp/Resources/en-US'The file is located in 'Sketchup.app/Contents/Resources/English.lproj/Materials.strings'
I haven't checked in SU2013.
-
(Sketchup.get_resource_path '' ) << '/Materials.strings'=>
/Applications/SketchUp 2013/SketchUp.app/Contents/Resources/Content/Resources/en-US/Materials.stringsworks in v2013 on my mac.
john
-
Sketchup.get_resource_path "Materials.strings"doesn't work in SU2013.
Thanks for the workaround, although it works only for SU2013.
-
SU v8 and v7 on my mac
edit, it returns a path to nowhere... but I knew I had it somewhere...
matPath = (ENV[ "IG_ROOT"]).dup << "/English.lproj/Materials.strings"works on v8 and v2013 at least
john
Advertisement