Notifications
Clear all

[Closed] pivot alignment

hi all,

i have a question and a need a bit help.

well i’m a rhino modeller and use max for rendering, texturing and for animations.
the problem is that once i export a set of identical nurbs from rhino… while importing some info are lost. the most important one is the pivot alignment without is impossible to instance them all.
from the image below you can notice that all body objects are the same, but on each of them the pivots is differently aligned. each of them has different bounding box… this way i can’t correctly instance them.

is there a way to create a script or is there just one that recognize all similar and identical geometries, to chose a source obj and to align the pivots on all other maybe taking as reference 2 or 3 points?
to get something like this…

this is the only way to get them all correctly instanced with the script created by Anubis.

this is just an example of its use.

thank you in advance

88 Replies

You said the objects are modeled as nurbs. If you are importing them into max as mesh then you can use this script that does exactly what you are looking for:
http://www.scriptspot.com/3ds-max/scripts/instance-tool

the orientation is lost, maybe objects are linked too

he needs one object with the pivot properly aligned as a reference, the rest with math…
or the orientation recalculated based on the positions
or do it manually…

if I understand…

but first …should try to re-export from rhino,
there must be a way on rhino’s side.

I see TzMtN script not just instance, reorient too, nice …

@TzMtN i know that script its great but the one from anubis or from petristool works fine also on nurbs without conversions.
the problem is that the script like the other automated instance-r just replace all other with a picked one. to got the thingy right i need to have all pivots aligned like in the second image.

@Ruramuq this is what i need
“or the pivot orientation recalculated based on the positions”
also, as i know, and after trying lots of stuff, there is no way to export such data from rhino… the nurbs aren’t linked.

edited
@TzMtN i tried once again your script and the result isn’t better that with the other scripts.

here an image if i instance all body object with the pivot like in the first image of the first post.

if you can provide a .max with some of those objects…
it would help to understand the problem.

sure i can provide the scene… give me some time and upload it on dropbox

here a scene with a small part of those object.
they are all body objects. check the pivots!

seams.zip

edited:
i forget to mention that it’s a 2012 max scene i forgot to export as 2010

i found this script pivot-by-2-vertex it’s working fine also in ma 2012.

@TzMtN is there a way to integrate this script in your?
i’m thinking load for now and i must admit that i have no idea how to do that.

anyway let me explain the idea, your script is able to recognize identical or similar object in the scene, based on this it is able to instance them all accordingly to their pivots.
well since it’s able to recognize the same geometries… could it be possible to introduce a first step in which the pivots can be aligned in one step on all objects by taking similar vertex from a master one?

I see, those bodies objects, do not have some kind of regular re-meshing, like in max NURBS.
The indexes are all different, they don’t share the same topology either.
That’s the reason why TzMtN script is not working…

to recalculate the orientation, you need 3 points.

but wouldn’t be easier to create a spline, and clone the object through it.
try with spacing tool.

you need one object, reoriented and with reset xform

Page 1 / 7