Hi community
I’m trying to setup 3 environments: dev, test and prod.
For each environment, I need a distinct extension in order to open them simultaneously.
I’ve encountered several issues along the way but the biggest one is file name.
require 'sketchup.rb'
require 'extensions.rb'
module Form3d
module Extension
unless file_loaded?(__FILE__)
ex = SketchupExtension.new('FORM3D', 'form3d/main')
ex.description = 'Generate 3d models of furnitures with AI.'
ex.version = '0.1.0'
ex.copyright = 'FORM3D ©'
ex.creator = 'FORM3D'
Sketchup.register_extension(ex, true)
file_loaded(__FILE__)
end
end
end
The only way I’ve been able to have 2 distinct extension is to rename “form3d/main” (and the related file) to something else.
Do you have some ideas about how I could create 3 environments/extensions?