How can I apply Material IDs to the 2 end-cap sides (and base) of a sweep object and then detach those Ends ?

Please, can you guys help me on this - it's the final step needed for a script I need :)

I have many shape objects that I need to batch process via a script.

They are all very simple extrusions, which are just a 2-vertex straight line 200mm in length, and each object has a single Sweep Modifier (each object has a unique custom shape).

The base and the side-ends of every shape is flat (and if it helps, I can specify that the sides are at x=0 and x=200, and the base will always be the face that is at z=0).

This is what I need to do for each object is as follows;

1) Apply Material ID 1 to the 2 side-end polygons and to the base polygon (that's just 3 polygons).

2) Apply Material ID 2 to everything else of that object.

3) Detach the 2 sides of this object (not the base) and call this editable poly the original_object_name with the Suffix "_Ends".

That's it :)

Repeat this process for all selected Objects :)

4) If possible, apply an instanced UVW Map Modifier to all faces which have the Material ID 1 (that is for ALL objects).

Any helpers out there please? I'll be eternally grateful:)

Thank you.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JezUK's picture

*** No Longer Needed, please

*** No Longer Needed, please ignore :) ***

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.