Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4141

Adding options to a custom command in Python

$
0
0

Hi all -

I’m looking for a pointer or an example of using command line options in a custom command. I’m sure it is out there - I just can’t seem to find it!

In the Rhino Python Editor I used “File->New>Command” and my command works great, but I’d like to add an option(s) on the command line. So when I run the command, I’d like to see something like:

Select object to analyse (Density=7850):

When I click on the “Density”, I’d like the option of entering another number.

Pointers anyone?

All the best,

Tom

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4141

Trending Articles