Feature Request: Allow assigning nodes to Chaos Scatter via MaxScript

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:

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!

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) 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:

--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