Author Topic: Chaos Scatter: Remove Distribute-on objects with the MaxScript  (Read 1377 times)

2025-05-13, 15:37:16

harumscarum

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • ZNAK
Is there any way in Chaos Scatter to remove object named "landuse_residential" from the Distribute-on list with the MaxScript command?
thanks

2025-05-13, 15:59:58
Reply #1

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 913
    • View Profile
Hi,

There should definitely be way to do it through maxscript, but are you having issues deleted it with UI?

For maxscript, I believe you need to create a new array for distribute-on object nodes, which will be empty or just the specified object deleted/missing from it.
Aram Avetisyan | chaos-corona.com
Chaos Corona QA Specialist | contact us

2025-05-13, 16:35:18
Reply #2

Frood

  • Active Users
  • **
  • Posts: 2002
    • View Profile
    • Rakete GmbH
I think you can delete it directly from the array parameter if you know the index. Select the scatter object and try

Code: [Select]
i=for o in $.targetNodes where o.name=="landuse_residential" collect o
ix=finditem $.targetNodes i[1]
deleteitem $.targetNodes ix
deleteitem $.targetfactors ix

Good Luck



Never underestimate the power of a well placed level one spell.