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

GetString only displays 3 string options?

$
0
0

Does GetString have a limit to the amount of strings shown in the command line? I’m trying to test using it with 5 options but it doesn’t display them all and also only ever shows “Connector”, “Sunfly” , or “Custom”. Im I using it wrong?

#! python 3

import rhinoscriptsyntax as rs

def scallop():
    # Select the curve you want to scallop
    get_crv = rs.GetObject("Select the curve you want to scallop", filter=4)

    # Select the % to scallop
    scallop_opt = ["Dodger Wing", "Connector", "Sunfly", "Enclosure Panel", "Custom"]
    scallop_type = rs.GetString("Select Product or enter a custom %", defaultString=None, strings=scallop_opt)


scallop()

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles