ghPython Component
Python Module Import Error
ghPython コンポーネントの、
モジュールのインポートでエラーが出る。
nature of code
NOC Python Grasshopper: 06 2d Perlin Noise - YouTube
import rhinoscriptsyntax as rs import perlin sn = perlin.SimplexNoise() pList = [] for i in range(x): for j in range(y): perVal = sn.noise2(i*scaleX,j*scaleY) point = rs.AddPoint(i,j,perVal) pList.append(point) a = pList
error message: no module named perlin
↓
add perlin.py
github.com
C:\Users\xxx\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (xxx)\settings\lib
ここに入れておく
・-・-・-・
同様に、
PostgreSQL 用の、psycopg2 とかもこの場所に入れる。
(終わり)