SketchUcation Plugin Store

 

 

Load more than one extension

Load more than one extension

Postby juliogriebeler » Thu May 24, 2012 6:19 pm

Hello,
i want to load 3 similar extensions with different names and icons.

But with all activated in the menu Window/Preferences,
in the menu View/Toolbar/ shows only one of them.
Anyone know a solution to load the three at the same time?
juliogriebeler
 
Posts: 1
Joined: Thu May 24, 2012 6:05 pm
Name: Júlio Griebeler

Re: Load more than one extension

Postby Jim » Fri May 25, 2012 9:45 pm

Júlio,

I'm a little confused by your questio. Are these extension you have written yourself?
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: Load more than one extension

Postby TIG » Sat May 26, 2012 2:00 pm

juliogriebeler wrote:Hello,
i want to load 3 similar extensions with different names and icons.

But with all activated in the menu Window/Preferences,
in the menu View/Toolbar/ shows only one of them.
Anyone know a solution to load the three at the same time?
This probably belongs in the Developers' forum ?
When you write a new 'tool' you create a toolbar and add commands into it; each commands has its own button images etc...
If you have separate scripts loading you need to make an enduring reference to the toolbar.
So have a 'loader' script, with a 'module' [say module Julios...... end] in which you define the toolbar with a @tbar = ... reference.
Then get it to load the other scripts which you have in a subfolder [perhaps called 'Julios'].
Then have each of those script's 'tools' encased in the same named 'module', and have some code to add each tool's command/button to '@tbar' toolbar.
This way you make the toolbar and add items too it from other scripts, by sharing the same module and a common reference to the toolbar, using a @ name that 'endures' :)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13917
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012


Return to Extensions & Applications Discussions

Who is online

Users browsing this forum: jumping_jack and 2 guests