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

Need help, Script not working - Rhino 6

$
0
0

@unknownp wrote:

Could you guys fix this script so I could use it properly.
What I am doing wrong ? I need just Z coordinate.

Thank you.

import Rhino
import rhinoscriptsyntax as rs

pt = rs.GetPoint()
If Not pt: return

zVal = str(round((pt.Z), 2))

zVal = str(round((pt.Z), 2))
If pt.Z & gt; 0: zVal = “US %s”%zVal

rs.Command("_-Leader " + “w” + str(pt) + " _Pause _Pause _Enter _Enter")

If rs.LastCommandResult() = 0 : return

leaderId = rs.LastCreatedObjects() [0]

rs.LeaderText(leaderId, zVal)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6017

Trending Articles