This file shows how to create an object that always points to other one:pointtome.sifz (1.05 KB)
-G
ah! =D something new to test, this remind me of that old example of an eye looking at some object, this combined with following a path would make interesting objects, i have to try it later, a little Off-topic; i installed via .deb package the recent build of Synfig, i must say thank you because everything works better for me, excellent implementation of the re-size/move/rotate tool, but overal, the excelent way in that .svg files are imported, even native Inkscape SVG files are imported without problems, nor even a window or something asking thins, and groups in Inkscape projects actually become ‘Encapsulate’ layers, great job G. i really like and enjoy the way in that Synfig is working, is really hard to think how to ask for more XD. keep ot up
Really cool technique Genete! I can see it can be very useful!
(How about a tutorial? )
Yeah, It could be a good tutorial.
Do you want me to do it or do you prefer to write by yourself?
-G
I can do it.
I finally did the tutorial by myself. I hope you like it and don’t get angry with me
-G
stumbled on this old thread by mistake and just wanted to add that there’s now a much easier way to achieve same goal:
- export the eye group origin as “eye.location”, and fly group origin as “fly.location”
- add a “rotation” layer to your eye group,
- convert it’s amount (angle) to “vector angle” and then convert this vector to “subtract”.
- link LHS to “fly.location” and THS to “eye.location”.
you can now freely move both the eye and the fly… and keep a close watch on the pest
(attached sample with crapy fly)
hope this helps.
B.
watch the fly.sifz (2.17 KB)
by ‘‘now’’ you mean with the 0.65dev version ?
(I have added your notes in the wiki.synfig.org/wiki/Doc:Point_to_one_object talk page)
no, no, both “vector angle” & “subtract” have been around for quite some time in stable releases, and definitely readily are in 0.64.1.
Thanks for the wiki update. I added some illustration to make the maths accessible for all… you can even play with them directly.
wiki.synfig.org/wiki/Doc_talk:Po … one_object
B.
wiki.synfig.org/wiki/Doc:Point_to_one_object : Updated ! Fill free to alter it again …
Great initiative the math illustration !
That’s cool, but it won’t work if the fly is inside the eye.
-G