Register
Log in
Substance Forum
»
Substance Designer
»
Scripting
»
Run script on startup 2 : toolbar launched two time with Python Plugins Paths .
« Previous Topic
Next Topic »
Pages: [
1
]
Go Down
Author
Topic: Run script on startup 2 : toolbar launched two time with Python Plugins Paths . (Read 1619 times)
kKony
Hello
I work on a script who work with toolbar button.
this button is launched at startup via "Python plugins paths"
but I have little issue:
-> the toolbar is diplayed 2 times
my test script come from official documentation
https://docs.substance3d.com/sddoc/creating-user-interface-elements-172824940.html
I just copy paste your example in my test script file
probably i use bad method to start the stoolbar at launch, are you another way for me?
thaaanks
on:
March 12, 2020, 12:56:45 am
ireneus brewka
just in case you haven't figured out the problem.
you have to put the creation of the UI-elements into a definition called "initializeSDPlugin"
def initializeSDPlugin():
# create and attach the ui elements here...
Reply #1 on:
March 14, 2021, 04:27:12 pm
Pages: [
1
]
Go Up
« Previous Topic
Next Topic »
Substance Forum
»
Substance Designer
»
Scripting
»
Run script on startup 2 : toolbar launched two time with Python Plugins Paths .