Step to obj not retaining separate parts

Hi. I am trying to export a step file with many separate parts to an obj file but the obj is always one single object. how can i get it to retain the separate parts? thanks.

Hi Danny - try these settings in the export options:

-Pascal

That did the trick! Thanks very much indeed! The only other thing if I may ask is that sometimes the step files have color information in them. is there any way to export this, perhaps as vertex colours or something? Thanks again.

Hi Danny - it looks like there is no good way to do that on export. Assigning materials that match the object color would help - I may have a script that does that, I’ll take a look.

@Danny_Grogan - here is something that may work - the command line option lets you set whether each object should get a unique material, which is handy sometimes, even if the material is otherwise identical to others. The default is not to do that but to consolidate identical added materials.

ObjectColorMaterials.py (2.2 KB)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

You can put that on a button or alias for convenience.

-Pascal