GDL object with option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-20
03:10 PM
- last edited on
2024-09-24
10:13 AM
by
Doreena Deng
I´m trying to make a object like "2 in 1". Want to be able to have an "on and off" function i.e. that you can chosse whether a part sholud be visible or not. How do I achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-20 03:55 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-20 04:25 PM
You have labelled your post as "Library Part Maker".
I don't think library part maker can do this.
Or are you looking for a solution using Library Part Maker or are you just scripting in GDL.
Cuba has given you a solution for this.
Barry.
Also I moved this post to the GDL forum.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-20 04:37 PM
Thanks for the answer! The object that u sent i couldnt open...? and I can´t find the line text2... in my script.
Could you pls give me more information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-20 04:40 PM
Which AC version are you using?
Replace the text2 line with your script.
AC27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-21 03:27 AM
Add a signature to your profile with things like your AC version and some basic computer info as some things maybe software or hardware specific. See link in mine for more info.
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 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-21 08:10 AM
AC26

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-21 08:20 AM
What cuba was suggesting is to create a boolean parameter called "switch' or "show_object" - call it what you want.
Then in your 2D and/or 3D scripts you can say ...
IF switch = 1 THEN
........ !!add your object script here - it will run if the switch is on
ELSE
END !!this will show nothing when the switch is off
ENDIF
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11