2024-07-25 09:52 AM
Dear Forum,
I know that here are a lot of expert GDL, I want to ask a simple question that I can not solve it..
I only want to rotate the block (Archicad object) via the axis in the center of the block, but in AC always rotate that in the corner.
I have moved the hotspot but the same result, no change. I tried many ways but still got the same result, too difficult.
Can anyone give me some advice for that case? Thanks.
I attached some photos here.
Operating system used: Windows
Solved! Go to Solution.
2025-06-30 06:17 PM - last edited a month ago
Hi, maybe my response is a little overdue but it's also my first time posting here.
The hotspots command is used for visualizing them around the object, they don't make a change in the object's internal space
You need to move the object to the origin in the 3D script, the origin is sitting under one of your object's corners, so you will need to move it to the geometric center (let's assume for the moment you don't need to move it vertically), like this:
The command for moving an object in the 3d script is
ADD x, y ,z
If the object has a length of x, then the middle is x/2
If the object has a width of y, then the middle is y/2
As the object seems to be moved backwards, both values should be negative, then your script should be something like this
ADD -x/2, -y/2, 0
And your object should be in the origin, then you can figure how to rotate
Best regards.
2025-06-30 06:17 PM - last edited a month ago
Hi, maybe my response is a little overdue but it's also my first time posting here.
The hotspots command is used for visualizing them around the object, they don't make a change in the object's internal space
You need to move the object to the origin in the 3D script, the origin is sitting under one of your object's corners, so you will need to move it to the geometric center (let's assume for the moment you don't need to move it vertically), like this:
The command for moving an object in the 3d script is
ADD x, y ,z
If the object has a length of x, then the middle is x/2
If the object has a width of y, then the middle is y/2
As the object seems to be moved backwards, both values should be negative, then your script should be something like this
ADD -x/2, -y/2, 0
And your object should be in the origin, then you can figure how to rotate
Best regards.
2025-08-22 02:51 AM
Thanks for the reply, it’s not late — you helped me understand the issue more clearly. I started my question when I began learning how to use Param-O, but by now I’ve given it up. GDL script is still the better approach when working with Objects.
2025-08-22 02:55 AM
It seems like the number of people visiting this forum is extremely low — you can post a question and only get a reply a year later. Not only users, but even GS staff seem to neglect the forum. GS should improve it and make it more modern, perhaps following the Discourse style of McNeel, which might attract more users.
2025-08-22 12:10 PM
Hi, I fully agree on this. In addition Param-O has never left the experimental status. I just like to share the way I'm used to rotate objects of any shape with the Area Node and send them to AC.
a month ago
Thanks for your response. That is one way to achieve, but you need to be aware that the file size will increase when using Mesh; better to use the native component or GDL. GDL is suitable for parametric, but it needs time to master.
a month ago - last edited a month ago
I saw "Grasshopper" and glossed over it since I have never used GH or Rhino... Not getting a reply also does not mean no one is seeing your question, given there have been 845 views of this thread so far, though maybe that is just you refreshing the page hoping for a reply. There is also the GDL sub under the Developer Hub menu, which I guess would be a suitable sub to post in? I do not really pay much attention to GH/Rhino questions...
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |