Objects in IF statements not defined.

The operation of this simple .blend:

You Left click on the first object. You then right click on the second object and the first is moved to exact location and orientation of first object.

The problem is that an object defined in the first IF statement is not known in the second IF statement. So it does not work.

p.s. I tried to get it to work with left click only using states but have not had much luck.


mouse click rev 3.blend (196 KB)

Hi, I fixed up your .blend. I hope it is what you want.


mouse click rev 4.blend (176 KB)

Thanks alot, that is just what i was after.

I have modified it slightly so only objects with the property “snap” can be moved.

It works perfectly.