# Simple task - made a lengthy scripts. want to shorten it

**URL:** <https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [October 1, 2025, 11:46am UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432 "2025-10-01T11:46:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathappan\_Dharun1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sathappan_dharun1/32/687563_2.png) [@Sathappan\_Dharun1](https://discourse.mcneel.com/u/Sathappan_Dharun1)\
**Post date:** [October 1, 2025, 11:46am UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/1 "2025-10-01T11:46:18Z")

</div>

Divided the curve(13) and moved every 4th of it and interpolated the point. **To make the point list i used list item for every point and merged to make the order.so if i want to move every 5th and interpolate i has to changes all list item. help me out to fix this.**

 ![Screenshot 2025-10-01 171542](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/8/2/f824836a4f675dcc114da5df7d6da010fdb59225.png)

 ![Screenshot 2025-10-01 171115](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/d/8/bd807dab69d4026665eec816f4c6c18fb3b52b2d.png)

[script.gh](https://discourse.mcneel.com/uploads/short-url/3xxOki1KRJWwqsTui8gKV5n2jDq.gh) (30.2 KB)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [October 1, 2025, 12:01pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/2 "2025-10-01T12:01:29Z")

</div>

Anyone who uses the phrase “ **Simple task** ” or “ **quick question** ” deserves to be ignored because they have **NO IDEA** how much work is required to formulate an adequate reply.

---

<div class="post-metadata">

**Author:** ![Sathappan\_Dharun1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sathappan_dharun1/32/687563_2.png) [@Sathappan\_Dharun1](https://discourse.mcneel.com/u/Sathappan_Dharun1)\
**Post date:** [October 1, 2025, 12:04pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/3 "2025-10-01T12:04:59Z")

</div>

@Joseph_Oster SORRY FOR THE WORD, BUT I HAVE DONE IT BEFORE, NOW I FORGOT, DONT KNOW HOW TO DO. PLEASE HELP ME OUT.

---

<div class="post-metadata">

**Author:** ![Eef\_Weenink](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eef_weenink/32/764753_2.png) [@Eef\_Weenink](https://discourse.mcneel.com/u/Eef_Weenink)\
**Post date:** [October 1, 2025, 1:54pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/4 "2025-10-01T13:54:53Z")

</div>

Please internalise the curves inside your srcipt.gh file.  
Regards, Eef

---

<div class="post-metadata">

**Author:** ![Sathappan\_Dharun1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sathappan_dharun1/32/687563_2.png) [@Sathappan\_Dharun1](https://discourse.mcneel.com/u/Sathappan_Dharun1)\
**Post date:** [October 3, 2025, 5:24am UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/5 "2025-10-03T05:24:11Z")

</div>

whats that means?

---

<div class="post-metadata">

**Author:** ![Eef\_Weenink](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eef_weenink/32/764753_2.png) [@Eef\_Weenink](https://discourse.mcneel.com/u/Eef_Weenink)\
**Post date:** [October 3, 2025, 5:46am UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/6 "2025-10-03T05:46:53Z")

</div>

If you refer to my qestion:  
a grasshopper file (\*.gh) works with the geometry in your Rhino file (curves, points, lines, etc).  
If you want it to use it with these geometry you have to internalise these before uploading to the forum:  
See images: Right click; scroll down to internalise. When done; save ; and upload.

 ![Scherm­afbeelding 2025-10-03 om 07.44.19](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/5/4/15402899b933f837933cffd3235ea873b82ea2a9.png)  
 ![Scherm­afbeelding 2025-10-03 om 07.44.47](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/0/c/20ca25de2539dad99c60d6e1eb8f566000d812d1.png)

Regards, Eef

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [October 3, 2025, 10:41am UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/7 "2025-10-03T10:41:04Z")

</div>

> [@Eef\_Weenink](#):
>
> If you want it to use it with these geometry you have to internalise these before uploading to the forum

Or post the Rhino file the GH refers to. Internalizing geometry works best when the geometry doesn’t **substantially** increase the size of the GH file. On the other hand, HUGE GH files that consist mostly of internalized _(complex)_ geometry don’t make sense on the forum because the geometry doesn’t change while the relatively small code may change many times. In those cases, a separate Rhino file makes more sense.

---

<div class="post-metadata">

**Author:** ![trpatt](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/trpatt/32/693418_2.png) [@trpatt](https://discourse.mcneel.com/u/trpatt)\
**Post date:** [October 3, 2025, 2:13pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/8 "2025-10-03T14:13:37Z")

</div>

Yes, you can simplify this immensely by using the List commands in the Set tab of the toolbar.

 ![Screenshot 2025-10-03 171123](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/c/6/ec60e8e5c4fd5eee7830775ec92bb8c3988e069b.png)

In this case, use Replace to re-insert the moved points back into the list at the same sequence from where they were selected. The panel is linked to both the Item component and the Replace component, so one change to the numbers in the panel immediately updates both. (If you have many points to move, on a longer curve, for example, this can be even more streamlined using a Series component to generate the numbers).

[script-REPLACE.gh](https://discourse.mcneel.com/uploads/short-url/lvqKtxzMm7HeuJOELxTuyrxETC0.gh) (11.6 KB)

---

<div class="post-metadata">

**Author:** ![trpatt](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/trpatt/32/693418_2.png) [@trpatt](https://discourse.mcneel.com/u/trpatt)\
**Post date:** [October 3, 2025, 2:16pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/9 "2025-10-03T14:16:28Z")

</div>

> [@Joseph\_Oster](#):
>
> **NO IDEA** how much work is required

The exception that tests the rule… this actually was very simple, even without the request being formulated well.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [October 3, 2025, 3:15pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/10 "2025-10-03T15:15:27Z")

</div>

> [@trpatt](#):
>
> this actually was very simple, even without the request being formulated well.

How much **total time** did you spend? Including creating the geometry _(which was missing)_, creating the image and composing your reply?

I haven’t looked at any of the code here, the word “ **simple** ” in the title was enough to dissuade me. Unless you can do a thing yourself _(as you apparently did)_, the assumption that it’s “ **simple** ” is inappropriate. Hardly a day goes by on this forum without someone saying “I know it’s simple but… _(I can’t do it)_”.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [October 3, 2025, 3:40pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/11 "2025-10-03T15:40:56Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/2/7/327567d5182134e0c38e54bfb426d0789f921e30.png)

---

<div class="post-metadata">

**Author:** ![trpatt](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/trpatt/32/693418_2.png) [@trpatt](https://discourse.mcneel.com/u/trpatt)\
**Post date:** [October 3, 2025, 3:54pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/12 "2025-10-03T15:54:22Z")

</div>

Yes, yes. Most of the suupposedly ‘simple’ tasks are not, I agree.

This took a minute or two, including screenshot and posting.  
The missing geometry was only a line segment parallel to the X-axis.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [October 3, 2025, 4:09pm UTC](https://discourse.mcneel.com/t/simple-task-made-a-lengthy-scripts-want-to-shorten-it/210432/13 "2025-10-03T16:09:07Z")

</div>

> [@trpatt](#):
>
> This took a minute or two, including screenshot and posting.  
> The missing geometry was only a line segment parallel to the X-axis.

Five or ten minutes would be a “quick question”, “a minute or two” sounds exaggerated. I admit that “simple” and “quick question” trigger me - for good reason.
