Selecting first, running script then - thats the way it works.
However, this is what happened if I run the script without selecting anything.
It creates the two layers, and it pops up “Done.”
No splines were created.
If I select the meshes, and run the script again, this happens:
-- Error occurred in o loop
-- Frame:
-- minVal: 3.8555
-- o: $3dSolid
-- topFace: 1
-- bottomFace: 3
-- maxVal: 3.4583
-- called in anonymous codeblock
-- Frame:
-- poGetEdgesUsingFace: polyop.getEdgesUsingFace()
-- poCreateShape: polyop.createShape()
-- topSplineLayer: undefined
-- bottomSplineLayer: undefined
-- selObjsArr: #($3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, $3dSolid, ...)
-- poGetFaceCenter: polyop.getFaceCenter()
-- Unknown property: "addnode" in undefined
I would suggest
- check if anything is selected before script is executed
- accept layers to exist if I would run the script a second time.
What did you mean by this?