About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
LittleLordPotala
Thanks for the quick response. It seems like I was over thinking it and expected it to be more complex than it really needs to be.
Sergo,
How is it going man?
Denis is a maxscript expert i do believe.
The reason I was unsure how to use his script was because of the fact he was using slerp which only averages 2 values.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Move and rotate to average
How to use the script :
Select the objects which you want to calculate the average.
Launch the attached script.
Pick the object you want to move and rotate at this average.
It's done.
I want to find the average
I want to find the average rotation for a selection of objects. Not just two objects. In the example image I show the average rotation for juts 2 objects, just to get the main point across.
http://www.scriptspot.com/files/averagerotation.png
I found this on cgtalk which blends matrices which is what im ultimately after.
I'm just not completely sure on how to get this to work entirely with multiple objects. Right now this only works with 2 objects. The biggest thing to get to work is the rotation. I know how to get average postitioning.
http://forums.cgsociety.org/showpost.php?p=6389088&postcount=2
I want to find the average of all selected object's matrices and then create and object and apply the average matrix to it.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Thank you for the link! Denis
Thank you for the link! Denis is a really maxscript-superhero :)
How about using this function iterating over all objects - e.g. find average between first two objects, then between that average and the third object and so on?
What's this?
Could you give a bit more detail on what the average rotation is?