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

[BUG?] Rhinoscriptsyntax forgetting some functions after instaling RH6 WIP

$
0
0

@Angel wrote:

Hi there!

I've noticed how after installing the last RH06 WIP (Windows 10 here) I'm losing some rhinoscriptsyntax functions (per instance rs.GetInteger()). I don't know if it's directly related to the WIP installation but somthing about it seams to be involve in this mystery.

The thing is that after rebooting everything works fine and after a while some commands that I've create using Python start raising errors because:

Traceback:
  line 13, in RunCommand, "C:\Users\Ángel\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\PythonPlugins\PFC {4b8b83b1-16e6-44c0-8c33-9d9dd47c33bb}\dev\OffsetMult_cmd.py"
  line 1, in <module>, "<string>"
  line unknown, in <module>, "<string>"

Then, I reboot my machine and everything starts working ok again...o.O

And the script is very simple (sorry for the lack of "design to fail checks but I made it in a rush some time ago):

import rhinoscriptsyntax as rs

strCrv0 = rs.GetCurveObject("Select curve",True)
intTimes = rs.GetInteger("Number of repetitions")
dblDist = rs.GetReal("Distance between curves")
pt0 = rs.GetPoint("Selec offset side")
rs.EnableRedraw(False)

for i in range(intTimes):
    
    newCurve = rs.OffsetCurve(strCrv0[0],pt0,dblDist*(i+1))
    strCrv = newCurve
    
rs.EnableRedraw(True)

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles