Hey everyone, I’m in the need of some help. I’m trying to transform a big grasshopper script to a single GH-Python script and I’m currently stuck at this Orient function.
So in the Orient component there are 3 inputs; G, A, B.
In my GH Script A and B are solved but I can’t seem to leave ‘G’ empty.
I tried putting “0”, “1”, an empty string, etc.
Nothing works, and when it does work, it only gives me the “generic” output.
the orient tool works on geometry (G), and it take an initial plane (A) and moves, rotates and scales to the target plane (B)
it does not work without a geometry input
The script itself is really big, my task is simply to make it as compact as possible with the use of GH-Python scripts… I guess I’ll try something else, but I appreciate that you took your time
in the screenshot looks like you are only using the X output of the Orient component, which carries the transformation of the plane A into the plane B, so if you want to rebuild that in Python I think you have to look into Transformations
YESS! Thank you, I managed to use the transform function instead of the Orient function. I’m unsure why they used it in the first place… I appreciate you both taking your time and answering me