Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

window positioning

juliencuadra
Enthusiast
I created a window composed of a wallhole with four hotspots that can move in all directions to allow me to create an opening in any shape i want.

My problem is that when I move one of the corners the whole window will be moved to keep the center the window in the same position. So, if i extend one corner by 50 cm, it will only move 25 and the whole window will slide by 25 in the opposite direction.

This seems to be particular to window/door type objects, i never encountered this problem with other objects I created.

How can I change the origin or reference point of a window object so that only the corner I edit will move?

I didn't find much about this in the documentation.

Thanks for the help.
9 REPLIES 9

Lingwisyer
Rockstar
I haven not encountered this before... Does the Hotspot origin and moving point not match the relevant corners of your Wallhole?



Ling.
AC22-23 AUS 7000
Self-taught, bend it till it breaks.

Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

juliencuadra
Enthusiast
The hotspots match the wallhole just fine.

The problem is that when I resize the wallhole by dragging one of the hotspots the hole will shift on the wall to keep the same center position.
So if I drag one of the hotspots by x it will only move by x/2 and the rest of the hotspots will move by x/2 in the opposite direction.

You don't need to code hotspots to stretch a wall hole If you created a window wall hole then by default the a and b nodes provided will stretch the window the way you want. Because the windows are coded from centers out you cannot use your own hot spots to change the width or height without the effect happening that you're talking about but again you don't need those because the doors and windows base nodes will control the opening size if you mapped it to the a and b parameters
FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

juliencuadra
Enthusiast
I do need the hotspots because I'm want to be able to get any shape i can need otherwise I'd just use a default opening.

I'm just trying to get around the centered orgin thing.

Goker Malik Altuntas
Contributor
Might it be about activating or deactivating the base point? What flag did you use for the base point? Just 1, 1+128 or 1+256?
Also could share a bit from your script? So we can better evaluate the structure
text2 0, dy * 2, "Goker Malik Altuntas"

You should have the main rectangle use a and b variable and then code the remaining hotspots for the shape. I know as I've spent hours in the past trying to do what you are wanting and ultimately you need a defining rectangle for boundaries and then a wall hole that has hotspots for shapes that is bound by a and b respectively.

It's the same for the wall accessories of you want to define shapes by name.
FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

But a picture or object would help for sure with the explanation you're looking for.
FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Barry Kelly
Moderator
Sounds like your wall hole is centred on the origin?
But you are using the full values of the width and height to stretch it.
Not sure if that explains it properly.

I would use 0,0,0 as the bottom left corner of your wallhole.
Then all the co-ordinates for the other corner hotspots should be exactly as you want them.
If you need to re-centre on the origin then use a transformation before the hotspots and wallhole command.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Pertti Paasky
Enthusiast
Have You tried this:
https://bimcomponents.com/Search/freeform
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!