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
Here it is explained
Scene Setup: All the teapots are animated going from left to right as seen in image one.
There is a Geosphere in the origin 0,0,0
Run the script. The result makes all the animated teapots aligned towards the geosphere which is what we want. Results of image 2.
The problem is that when i delete the look-at constraints the teapots return back to there original states found in image 1.
I want to somehow figure out a way to keep that offset and rotation created by the lookatConstraint and but delete the look at constraints.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Now it's animated?
This is quite different from what we've been doing so far.
I can't open the file (still using old max 9). You'll have to describe the scene: what is animated (objects? target?), what is looking at what, how many targets?
From the script it seems that you link to a dummy and then give it a lookAt. If you want to animate either the dummy or the target, of course you don't delete the dummy!
(...!)
I'm curious to see where this is going :)
Bug
Alright this is where I'm going with it Garp.
I'm having an issue when I delete the Dummy with the Look At Constraint. Now do you know of any where I could get around that and somehow delete it which keeping its offset?
Directions:Open the max file and run the attached script but ONLY on the green wirecolored objects and the scrub the time line. You'll notice all the objects animate inward which is what I want.
If you do that same process but delete the dummy it doesnt react the same.
Thanks
John
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
(...)
Nice
Great stuff Garp.
Now this script seems to change the objects pivot to point at the targeted object which is great and what I asked for. Thanks a ton.
Now is there a way to not only change the objects pivot but rotation align it to point at the target objects pivot.
For example. You had a geosphere at 0,0,0 and then you created a handful of teapots.
You now want to rotate align the teapots so not only their pivots but also the spout on all of them are pointing towards to targeted object (geosphere)
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Is
Is there a way to do this without using a controller?
Is there a way to run the script and it makes the objects pivots rotate to look at an object? It doesn't have to be a permanent thing like the look at controller. I'd like it to just rotate once to match.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Working version:
Hey Guys
Hey guys did this one ever get figured out and working?
I was messing around with it today and it does not seem to be working properly?
Any final scripts or conclusion on this one?
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
u mean : for o in $ do
u mean :
for o in $ do o.objectOffsetRot *= o.rotation
i tried that but the objects didnt get back to thier original state ...
Youtube | Instagram | Gumroad | Turbosquid