3 weeks ago - last edited 2 weeks ago by Barry Kelly
Hello, I'm a newbie to GDL, trying to get into scripting / creating parametric objects.
Is there an easy way to edit the script of an object like a pipe to easily extend it?
Most importantly for a simple 2D-object.
Second, if possible, for a 3D-object. I'm currently using the shell tool to create it.
Cheers, phlp
2 weeks ago - last edited 2 weeks ago
You would just relate the element that is making the straight bit to your ZZYZX value. So for 2D that would be the y value of your LINE2 or POLY2 command while for 3D this would be your be your ZZYZX value in like your SHELL or TUBE.
LINE2 0, 0, 0, [fixed pipe length] - [pipe end length]
LINE2 0, 0, 0, ZZYZX - [pipe end length]
Ling.
ps. This is in the wrong sub, there is a specific GDL sub. A mod will probably move this for you.
pss. If the pipe was originally made via Save-as-object, then it will not be so easy as identifying parts in the automatically generated script so that you can isolate what you want to stretch from what you want to be static is difficult.
| AC22-29 AUS 3200 | 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 |
2 weeks ago
Some AI-Solution for this Question - german, but You can let it translate in Youtube..
https://www.youtube.com/watch?v=XbGz5JGzuIY
2 weeks ago
i created this object in about 5 minutes , using Gemini , you can set the lentgh with hotspots , and define the pipe inclination in the object parameters ,