# Feature Request: Allow assigning nodes to Chaos Scatter via MaxScript

**URL:** <https://forums.chaos.com/t/feature-request-allow-assigning-nodes-to-chaos-scatter-via-maxscript/191913>\
**Category:** Requests\
**Tags:** chaos-scatter, features\
**Created:** [October 14, 2026, 2:03pm UTC](https://forums.chaos.com/t/feature-request-allow-assigning-nodes-to-chaos-scatter-via-maxscript/191913 "2026-10-14T14:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youri\_Kovalenko](https://avatars.discourse-cdn.com/v4/letter/y/ce7236/32.png) [@Youri\_Kovalenko](https://forums.chaos.com/u/Youri_Kovalenko)\
**Post date:** [October 14, 2026, 2:03pm UTC](https://forums.chaos.com/t/feature-request-allow-assigning-nodes-to-chaos-scatter-via-maxscript/191913/1 "2026-10-14T14:03:16Z")

</div>

Hello,

I’d like to suggest a small improvement to the MaxScript interface for Chaos Scatter.

Currently, Scatter exposes properties such as `.targetNodes` and `.modelNodes`. However, assigning an array of nodes directly to these properties does not appear to fully update the Scatter object’s internal node list.

For example:

```auto
ScatterObject.modelNodes = myArrayOfNodes

```

This executes without errors, but the assigned nodes do not appear in the corresponding list in the Modify panel.

Interestingly, clicking the `[...]` button does display the nodes from `myArrayOfNodes`, suggesting that the assignment is partially registered, but the UI list itself is not properly updated.

Fixing this would make it much easier to automate Scatter setup and manage node assignments programmatically.

Thank you!

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [October 16, 2026, 9:04am UTC](https://forums.chaos.com/t/feature-request-allow-assigning-nodes-to-chaos-scatter-via-maxscript/191913/3 "2026-10-16T09:04:57Z")

</div>

It already works, but you need to update all corresponding arrays at once - frequencies, instance colors, cluster indexes, etc. The UI is updated only after all of these arrays have the same length.

Luckily, there’s an `addModelNode` function ([in the ChaosScatter interface](https://documentation.chaos.com/space/CRMAX/124394405/MAXScript#Chaos-Scatter-MAXScript-API)) to directly add node arrays. These are added in the Instanced Model Object lists (`.modelNodes`).

For the `.targetNodes`, you need to set only the `.targetFactor` along with the nodes array, and it will work.

Sample script:

```auto
--adds the target objects:
Cs = ChaosScatter()
Cs.targetNodes = #($Plane001)
Cs.targetFactors = #(1.0)

--adds the model objects:
arr = #($Sphere001, $Cone001, $Teapot001)
for i in arr do Cs.FpInterface.addModelNode i

```
