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?
2024-02-20 03:55 PM
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.
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?
2024-02-20 04:40 PM
Which AC version are you using?
Replace the text2 line with your script.
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 |
2024-02-21 08:10 AM
AC26
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.