2 weeks ago
...that triggered a py script in Archicad.
Let's say using Tapir > Publish....and make a nice AC button to run the script.
I can get AI to script stuff in python but am very interested in the effort of creating custom buttons/palettes in Archicad to make the scripts more available. I'm a video learner...not so much reading gazillions of text pages. Maybe I'm lazy but I learn from videos.
🙂
Solved! Go to Solution.
2 weeks ago
Oh don't you worry. You'll be fine. I don't think you can break anything that hard that you have to do that on another PC.
In the end you are dealing with the Archicad project directly. So as long you start on a local file, if you don't know what you are doing, it's okay.
Wouldn't rush into a productive TW file right away, tho 😉
2 weeks ago
I think @runxel's Perisso project is the quick solution you are looking for: https://github.com/runxel/perisso
Noémi Balogh
Senior Community Expert, Admin
2 weeks ago
Hi Mats!
Since you posted this in the C++ section... Do you actually want to have an add-on that has a little palette with a button?
Probably not.
I don't know of any video for Archicad directly. But that's not really needed anyway, because you essentially ask for a video on UI with Python. Just look around YouTube, I'm pretty sure you'll find something worthwhile.
As you might know we deliver Tapir with some scripts right out of the box. We use tkinter in the OrthoWall script since that comes with Python and does not need any external dependencies. You can look up the script to see how it's done.
UI is finicky tho, it might run well on Windows and not at all on Mac, and vice versa. Needs some testing. 😉
@FBumaye does something similiar to you I think. He deploys a company-wide tool that let's you run certain predefined functions.
He uses streamlit and pywebview instead of tkinter.
2 weeks ago
- last edited
2 weeks ago
by
Laszlo Nagy
Hi Mats!
You can also turn on the Python palette in the Experimental features, and open it from the Window/Palettes menu – I think it is close to what you need.
Best, Akos
2 weeks ago
To answer all:
I use the Python addon but not Tapir ( I will use it for publishing and preferably automatic publishing). Will look into Perisso when I can squeeze time.
I just want to see the workflow how to create a small palette...could be anything really.
/M
2 weeks ago
I'm managing our Archicad templates. Would you recommend fiddling with Tapir and custom stuff on another computer not to risk any mishaps in our tpl's?
2 weeks ago
Oh don't you worry. You'll be fine. I don't think you can break anything that hard that you have to do that on another PC.
In the end you are dealing with the Archicad project directly. So as long you start on a local file, if you don't know what you are doing, it's okay.
Wouldn't rush into a productive TW file right away, tho 😉