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

Call a function In Python script

$
0
0

In Rhino script.
Sub ACAP()
MsgBox “Hello World”
End Sub
I can call this sub by command “CAP” as alias as
Rhino.AddAlias “CAP”, “_-RunScript (ACAP)”.
In Python script.
import rhinoscriptsyntax as rs
def ACAP():
rs.MessageBox(“Hello World”)
I don’t know how to call this fuction by by command “CAP” . Please help me!!!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5850

Latest Images

Trending Articles



Latest Images