License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Parametric design
About Rhino & Grasshopper and PARAM-O.

AC Grasshopper Object Hotspot problem

RhinoX
Contributor

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


ask3.PNGask4.PNGask2.PNGask.PNG
1 REPLY 1
Vorenus316
Participant

Hi, maybe my response is a little overdue but it's also my first time posting here.

 

The hotspots command are 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 locate 

 

Best regards.

 

 

Setup info provided by author