Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Executing a python script from another python script

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
jay.family22matt
228 Views, 5 Replies

Executing a python script from another python script

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

5 REPLIES 5
Message 2 of 6
j.han97
in reply to: jay.family22matt

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?

Message 3 of 6
jay.family22matt
in reply to: j.han97

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?

Message 4 of 6
j.han97
in reply to: jay.family22matt

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. 

 

 

Message 5 of 6

Message 6 of 6

Awesome thanks. This was just what i needed

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report