cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
RhinoX
Booster

AC Grasshopper Object Hotspot problem

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 Solution

Accepted Solutions
Vorenus316
Participant

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.

 

 

Go to post

6 Replies 6
Vorenus316
Participant

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.

 

 

RhinoX
Booster

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.

RhinoX
Booster

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.

Nurbs
Advocate

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.Rotate-1.png

 

Rotate-2.png

 

Rotate-3.png

 

AC16 - AC29, Rhino 5-8. Alienware WIN 11
RhinoX
Booster

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.

Lingwisyer
Guru

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-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!