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

Lock curves script

$
0
0

@onrender wrote:

Hi,

I tried the following script from the Python 101 but did not work. Could you tell me why?
I have created several curves and Run the script but nothing happened.

import rhinoscriptsyntax as rs
def lockcurves_nofail():
    curves = rs.ObjectsByType(rs.filter.curve)
    if not curves: return False
    rs.LockObjects(curves)
    return True

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles