Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Executing a python script from another python script

jay.family22matt
Contributor

Executing a python script from another python script

jay.family22matt
Contributor
Contributor

Hey. I am wondering if there is a way to execute a python script from another python script with both of those being implemented in Fusion. Also as a bonus I would like to be able to execute python scripts from a custom html pallete that I have made with JS implemented in. Is any of the tasks I have stated possible?

 

Thanks

0 Likes
Reply
Accepted solutions (1)
468 Views
5 Replies
Replies (5)

j.han97
Advocate
Advocate

Hi @jay.family22matt ,

 

I am not sure if I have understood your situation correctly. If you want to execute another script, why don't you import the methods/classes from the script to current script and execute them here?

0 Likes

jay.family22matt
Contributor
Contributor

Hey I can do that but its more the executing scripts from an html palette. Because I have created a wizard that guides the user through a bunch of steps and for some of those steps I want to execute scripts I have written to allow the user to use those. Does that make sense?

0 Likes

j.han97
Advocate
Advocate

I fear that I might not have the knowledge to answer your questions regarding palette because I personally have not used palette before (but will do in future). How different is palette compared to add-ins, in terms of executing command? In my expectations, they should be similar: Click button -> Execute some code. 

 

 

0 Likes

kandennti
Mentor
Mentor
Accepted solution
0 Likes

jay.family22matt
Contributor
Contributor

Awesome thanks. This was just what i needed

0 Likes