Attach object to box and delete box geometry, keeping original object name

Hi!

We need to automatise a simple procedure we use to skip problems caused by geometry imported from to 3ds from other software (Sketechup, Archicad, etc.).

Sometimes this imported objects keeps some transform data from the original files and this leads into weird results in 3dsmax.

The most effective way for solving it is creating a box, adding an editpoly modifier and attaching the problematic geometry to the box. Then we delete the box geometry and voila, we have a native 3ds object.

Do you it's possible to write a script that can do this process?
It should do the trick in multiple objects at the same time, keeping its name.

Any thoughts?
Thanks in advance!!!!!
Javier

Comments

Comment viewing options

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

Would be really nice

to have such a script...
I've been longing for the exact same reason as mentioned above.

jahman's picture

.

something like this?

(
  new_nodes = for s in selection where canConvertTo s Editable_mesh collect
  (
	tri = snapshotasmesh s
	new_node = mesh mesh:tri name:s.name pivot:s.pivot
	free tri
	new_node
  )
  delete selection
  select new_nodes
)
StormBrig's picture

Can you make it as a window?

Can you make it as a window?

bergagonzalez's picture

Thanks Vusta. I'll give it a

Thanks Vusta. I'll give it a try.
I'm just under the impression that resetting the transforms data is not always enough. Works for most of the issues, but some types of corrupted objects needs to be attached to native geometry.
Just an impression. I have been using 3smax for over 15 years but I haven't looked deeply into this kind of issues.

vusta's picture

sounds simple...

for a maxscripter that is...but what about searching for Reset Transform in this forum ?

Comment viewing options

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