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

Making Rhino.RhinoApp.WriteLine() easier to use

$
0
0

I miss how the print statement could give feedback in the command window in pre-8 rhino while running an ETO form, and I’m tired of typing out Rhino.RhinoApp.WriteLine() all the time. So here’s a couple of ways I’m playing around with in an effort to make using Rhino.RhinoApp.WriteLine() a little easier. I’m kinda liking method two although I’m not too fond of using wl because it looks like w1 and doesn’t quickly convey what it does. I’m thinking about changing it to print2 or writeln or something. But you could call it anything as long as it doesn’t conflict with something else.

# method 1
import Rhino.RhinoApp as rapp

rapp.WriteLine('hello')
#method 2
from Rhino.RhinoApp import WriteLine as wl

wl('hello')

Has anyone else played around with something like this? Is doing this problematic somehow?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles