Hello!
I finally decided to take some time and delve into Maxscript. I find it very exciting! But at the same time, a bit tough in terms of the learning curve.
I am currently trying to understand arrays.
What I want the script to do:
1. Obtain all the geometry names and positions (Assign them to specific arrays)
2. Based on a preset index range -- Example: objIndex = #{2..5} Get those names
3. Store only those names from the range in a new array
4. Compare the names in the new array with the scene geometry
5. If the scene geometry names match the new array names then (do something) -- Like Delete them
Here is the script I have so far: -- I know I am probably doing this in the most terrible and destructive way. Forgive me lol.
(
local GAPos = #()
local GAName = #()
local GASel = #()
(
GAPos = for o in geometry collect o.pos
GAName = for m in geometry collect m.name
)
GAIndex = #{3..5}
GASel = for k in GAIndex collect (GAName[k])
)
miauu · 2014-03-17
barigazy · 2014-03-17