I'm trying to organize and clean up a file with 14k objects all called polyfacemesh*, but I have been so lucky as to have some layers and wire colours retained.
I thought I'd make a tool that let me select a source object, and then it would select all objects in the scene with the same wire colour. This proved to be tricky to read up on in the maxscript help file.
Can anyone help me with how to store a selected objects wirecolour and then select the other objects sharing the same colour?
I also tried getting this to work through the visual maxscript editor, but that did not make it any easier
Obviously I haven't the foggiest idea of what I'm doing:
I thought I'd make a tool that let me select a source object, and then it would select all objects in the scene with the same wire colour. This proved to be tricky to read up on in the maxscript help file.
Can anyone help me with how to store a selected objects wirecolour and then select the other objects sharing the same colour?
I also tried getting this to work through the visual maxscript editor, but that did not make it any easier
Obviously I haven't the foggiest idea of what I'm doing:
Code:
source = selection getCurrentSelection() for obj in geometry do ( if iskindof obj geometry do --obj.wireColor = source.wireColor?? if obj.wireColor = source.wireColor ( selectmore obj ) )
Comment