XZ Plane can't do data conversion from integer to point

First-time poster here. I have a school project in Grasshopper-Python. I’ve been getting an error message in my code that I’ve been trying to troubleshoot for days now, but I can’t figure it out. So, I’m reaching out for help here. I’m only allowed to use ghpythonlibs.
My code:

import ghpythonlib.components as gh

point1 = gh.EvaluateLength(c, stp, False)

point2 = gh.EvaluateLength(c, slp, False)

point3 = gh.ConstructPoint(0, 0, point1[0])

point4 = gh.ConstructPoint(point2[0], 0, point1[0])

line1 = gh.Line(point3, point4)

length = gh.Length(line1)

result = gh.Division(length, 1000)

points = gh.DivideCurve(line1, result, False)

tangents = gh.DivideCurve( line1, result, False)

plane1 = gh.PlaneNormal(points[0],tangents[1])

unitz = gh.UnitZ(1)

plane2 =gh.AlignPlane(plane1,unitz)

plane3= gh.RotatePlane(plane2[0],-90)

plane4= gh.XZPlane({0, 0, 0})

transform = gh.Orient(plane3, plane4)

Errormessage:
Orient: Vicarious argument deduced from defaults at position 2. Add value for ‘target’: ‘Origin=0,0,0 XAxis=1,0,0, YAxis=0,1,0, ZAxis=0,0,1’.

XZ Plane: solver component. error: Data conversion failed from Integer to Point

XZ Plane: input 1 origin. error: Data conversion failed from Integer to Point

How do i solve this problem?
Many thanks in advance

I also need help this one:

Orient: Vicarious argument deduced from defaults at position 2. Add value for ‘target’: ‘Origin=0,0,0 XAxis=1,0,0, YAxis=0,1,0, ZAxis=0,0,1’.

Hi Ismail, it’s easier to debug if you upload the Grasshopper file. Remember to internalise relevant geometry parameters, see this for reference:

This seems highly dubious. Might we ask why? And welcome to the forum of course :slight_smile:

1 Like

Hi Anders, In my course, we are only allowed to use this type of file because my professor insists on it, but I find it quite unnecessary and dumb. If we use for example rhinosyntax he will fail me in this course.

GrasshopperCode_Forum.gh (6.9 KB)

1 Like

You’re not wrong, that’s a terrible development constraint. Sounds like it’s your professor that deserves a fail.

Hi, I figured it out, but a new error message appeared.

errormessage:

Loft: Vicarious argument deduced from defaults at position 1. Add value for ‘options’: ’ Loft’.

Loft: Vicarious argument deduced from defaults at position 1. Add value for ‘options’: ’ Loft’.

GrasshopperCode_Forum_New.gh (30.2 KB)

Many thanks in advance