Blender PVRGeoPOD plugin won't export


Error: An exception has been raised in the python script
’NoneType’ object has no attribute 'filepath’
File “G:\Program Files (x86)\Blender Foundation\Blender32\2.75\scripts\addons\PVRGeoPODScript.py”, line 821, in AddScene
AddObject(pvrgeopod, obj, -1, True)
File “G:\Program Files (x86)\Blender Foundation\Blender32\2.75\scripts\addons\PVRGeoPODScript.py”, line 748, in AddObject
AddObject(pvrgeopod, child, id, True)
File “G:\Program Files (x86)\Blender Foundation\Blender32\2.75\scripts\addons\PVRGeoPODScript.py”, line 718, in AddObject
id = AddMesh(pvrgeopod, obj, parentID)
File “G:\Program Files (x86)\Blender Foundation\Blender32\2.75\scripts\addons\PVRGeoPODScript.py”, line 312, in AddMesh
materiallist.append(AddMaterial(pvrgeopod, material))
File “G:\Program Files (x86)\Blender Foundation\Blender32\2.75\scripts\addons\PVRGeoPODScript.py”, line 656, in AddMaterial
node.pTexDiffuse = bpy.path.basename(tex.texture.image.filepath).encode(‘utf-8’)


This is the error I get. I found a workaround however it messes my animations up. I export in Collada format and then convert into POD format using PVRGeoPOD but the animations are very skewed. I want to use the blender plugin but unless I export without materials, it doesn’t work. Any idea of what could be causing this? I’ve already done a good amount of research and can’t find anything.

Could you to attach a blend file of a scene that reproduces the issue?

If you need to send it private, you can create and new ticket at: pvrsupport.imgtec.com/new-ticket

Hello, I had the similar problem. Here is the screenshot of the error message I got. I wonder if you found a solution for this? You can download the blender file here:

Hi Pipou,

Many thanks for supplying the file. I was able to replicate this issue. I will be looking into this problem shortly. I will update this thread as soon as I have a solution.

Regards.

Carlos.

Hi Pipou,

The problem with your Blender file was that some of the meshes were not triangulated. I have updated the python script so it will triangulate them for you. Just replace the original one by this one. This fix makes your file to export properly. Let me know if it works for you.

Regards.

Carlos.

Attaching the file this time.

Wow thanks a lot!

Hi Pipou,

Let me know if this solves your problem so I can do the final commit.

Thanks.

Carlos.

Hi Carlos,

Yes, I no longer get the error message and can successfully export .pod files. Thank you!

(*) Just another question, I have a smoke domain in my design and once exported to .pod, it becomes a solid object. Is it possible to export smoke to .pod? Thank you

Hello, I’m having the same exact issue, can you please let me know what I’m going wrong?
Also, how can attach my .blend file? Not allowing me here.

Hi damon,

When we migrated to this new forum the attachments disappeared. It should be available as part of our next release shortly. In the mean time I have attached the python script again.
If your problem does not goes away and you want to share large files with us, I would recommend using our ticketing system here

Regards

Carlos.

PVRGeoPODScript.zip (9.3 KB)