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

OffsetSurface not working in RhinoPython script

$
0
0

@Tofuw wrote:

Hello, I would like to select a surface, then to do an offset on it.
I follow the example in here but it won't work.

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select a surface", rs.filter.surface)

if rs.IsSurface(surface):
    print rs.IsSurface(surface)
    # Only with distance
    rs.OffsetSurface(surface, 10.0 )
    # With all parameters
    rs.OffsetSurface(surface_id=surface, distance=10.0, tolerance=0.001, both_sides=True, create_solid=True)
    print rs.OffsetSurface(surface,10.0)

My output is the following :

True
None

Which mean that I have the right surface (an Open Surface), but the OffsetSurface is in error. But I didn't know why.
Did you have some advice to solve this problem ?

Thank you in advance.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5793

Trending Articles