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

Please help me to exit While Loop in python when I press the enter key

$
0
0

I want to know how to exit While Loop when I press the enter key.

I want to do a specific action until I press Enter.

Please give me a simple example.

The code I tested.

import rhinoscriptsyntax as rs

while True:
rs.Command(’_circle’)
n = input('enter : ')
if n == ‘’:
break;

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5892

Trending Articles