dante
(dante)
September 13, 2003, 2:30pm
1
I recently downloaded the env-o-matic script. It looks like an EXTREMELY usful script, but the instructions are in french, and I think its a little dated.
Would anyone be willing to fix the script so that it works with the new API? I would REALLY REALLY REALLY appreciate it!
Thanks
dante
jms
(jms)
September 13, 2003, 3:21pm
3
Chimera:
I’m working on it
Works well on blender2.23/2.25/2.26/2.27
but there is just a little problem with
the .loc variable on blender2.28. yet corrected there:
http://jmsoler.free.fr/util/blenderfile/py/Envmap_O_Matic228.py
To use this script in your file
just rename the miror plane : ‘Mirror.001’,
the empty : ‘Mirror_Prime’
and the camera : ‘Camera.001’
Nothing else to do or if you want to use it in an animation
link the script to the camera in framechanged mode.
jms
(jms)
September 13, 2003, 3:33pm
4
Chimera
(Chimera)
September 13, 2003, 3:39pm
5
so no need for me hey I dont know y this script is so complicated. I wrote once a little one, cuz I was making water.
import Blender
cam = Blender.Object.Get("main_cam")
empty = Blender.Object.Get("water.env_empty")
lake = Blender.Object.Get("water")
empty.LocZ = lake.LocZ - (cam.LocZ - lake.LocZ)
empty.LocX = cam.LocX
empty.LocY = cam.LocY
Blender.Redraw()
Caronte
(Caronte)
September 13, 2003, 10:05pm
6
Your script don´t work on all posible cases (try to move the plane) but EnvMap_o_Matic works very well.
jms
(jms)
September 14, 2003, 2:13am
7
Your script don´t work on all posible cases (try to move the plane) but EnvMap_o_Matic works very well.[/quote]
You are right, to see the problem just do :
lake.RotX=30
Chimera
(Chimera)
September 14, 2003, 6:45am
8
ye I know what you mean. But guys… have you ever seen a lake who’s not flat?
this example is just with the objectpoint. very simple but works in this case