Hi MCollett,
Did you download and install both script files from the web page?
Yes
I have the solution: both must be in the scripts folder not in a folder xxx in the one!
When i run the script then the interface is displayed but if i choose and press ok, the console run and stop…
Compiled with Python version 2.6.2.
Checking for installed Python… got it!
Warning: invalid value encountered in divide
Warning: invalid value encountered in divide
Traceback (most recent call last):
File “<string>”, line 1, in <module>
File “C:\Program Files\Blender Foundation\Blender.blender\scripts\camera_resection\uv_unproject.py”, line 106, in <module>
uvUnproject()
File “C:\Program Files\Blender Foundation\Blender.blender\scripts\camera_resection\uv_unproject.py”, line 97, in uvUnproject
scale=make_camera(model,(rescaleX.val,rescaleY.val,rescaleZ.val),offset.val,ortho.val,name.val)
File “C:\Program Files\Blender Foundation\Blender.blender\scripts\camera_resection\uv_unproject.py”, line 70, in make_camera
else: return perspective(r2,r3,rescale,offset,name)
File “C:\Program Files\Blender Foundation\Blender.blender\scripts\camera_resection\uv_unproject.py”, line 41, in perspective
f,shift,ext,scale = camera_resection.estimate(r2,r3,rescale,offset,False)
File “C:\Program Files\Blender Foundation\Blender.blender\scripts\camera_resection.py”, line 192, in estimate
int,ext,scale = closestCamera(renormal(centre2,scale2)Prenormal(centre3,scale3).I,offset)
File “C:\Python26\lib\site-packages
umpy\matrixlib\defmatrix.py”, line 850, in getI
return asmatrix(func(self))
File “C:\Python26\lib\site-packages
umpy\linalg\linalg.py”, line 445, in inv
return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))
File “C:\Python26\lib\site-packages
umpy\linalg\linalg.py”, line 328, in solve
raise LinAlgError, ‘Singular matrix’
numpy.linalg.linalg.LinAlgError: Singular matrix
Where the problem is with my Blender 2.49a?
Pat
EDIT2: Eureka! I have understand why!
->Now ensure that you have syncing of edit mode and UV selection turned off. Select just the vertices you located correctly on the image
->you must add in your explaination: Select just the vertices “in the UV window!”
Very well! i hope you can to Blender release 250 to update your script…
Byby
Pat
EDIT3: Chromoly can certainly help you about Blender system!
He is a strong coder for Blender Foundation…
www.youtube.com/user/chromolytube#p/u