Cancel
Showing results for 
Search instead for 
Did you mean: 

python menuscript args

Creator
Creator

How do I pass arguments to a python script from menuscript.

 

I've previously used vb.net and the button name was passed but I can't figure out how to get this info in python.

 

Many thanks in advance,

Andrew

2 REPLIES 2

Re: python menuscript args

Siemens Phenom Siemens Phenom
Siemens Phenom

@Andrew4 wrote:

I've previously used vb.net and the button name was passed but I can't figure out how to get this info in python.


Did your previous button call a VB.NET Journal or DLL?

The documentation says "The button name is not passed for a journal" so for Python you may pass it as custom argument.

 

Re: python menuscript args

Creator
Creator

That's great, I don't know why I didn't find that.

 

The previous script was compiled into a dll. So, that explains the difference.

 

Many thanks,

Andrew