Import .ply work

Ok here’s the deal. I don’t know if my ply file is bad or if python is bad.
But I can’t import any ply models into blender.
Ok firstly I go here:
http://graphics.stanford.edu/data/3Dscanrep/

And download the ply file for happy buddha. I use ultimatezip (which is free) to unzip the tar file.
I then open blender go to:

  1. File > import > PLY (navigate through my directory to point to the ply file and click the import ply button. It looks like it is doing something because the screen flickers and a bar loads at the top.

Then I get a python script error and it says check console. The error is as follows:

Compiled with Python version 2.4.
'import site' failed; use -v for traceback
Checking for installed Python... No installed Python found.
Only built-in modules are available.  Some scripts may not run.
Continuing happily.
Traceback (most recent call last):
  File "<string>", line 271, in filesel_callback
KeyError: 'face'

What the hell does that mean. I have installed the latest version of blender? Help.

Ps. the same thing happens if I choose the standford ply import option as well. There are two import options for ply in my menu.
If you can solve this I’d be so happy.

Anyone know what this could be?

can you try 2.43rc1, and make sure your using its ply importer
if it dosnt work then make a link to the file that dosnt work.

Im able to import at least 1 of the files using blender from the current CVS,. which has the same PLY importer as 2.43rc1

Ok I will try. I hope this works. What’s the rc1 mean anyway?

its a blender release, linked from the main page

No I get exactly the same error with the new version of blender, whatever file I try to import.
:confused:
Do I need to install python or something?

please provide a link to a file that wont load.

Cheers

http://uploader.polorix.net//files/137/happyStandRight_120.ply

Any file I use that came in the tar file I unzipped with “ultimate zip” gives me the exact same console error. Any ideas?

This model is a point cloud.
Maybe Blender can’t generate a mesh from the points?
Some of the other PLY files on the site do contain meshes, such as the reconstructed buddha files.

yeah, just looked at it. PLY import now imports the points without raising an error,

yeah, just looked at it. PLY import now imports the points without raising an error,

I’m sorry, what do you mean? Does it work or not? If that file works with your version of blender what could be wrong with mine. Help please.

I modified the PLY importer in blenders CVS for it to work with the file you provided, if you get a recent build or get the script from CVS it will work.

Please provide a link to this recent cvs. What is cvs anyway?
Or a link to the modified ply import script.

Latest blender scripts are here. dont use with blender 2.42 because the API has had soem additions.
http://projects.blender.org/viewcvs/viewcvs.cgi/blender/release/scripts/?cvsroot=bf-blender

Nope, I still get the same problem but this time on a different line.

I’m using blender 2.42a and your up-to-date ply import script and the ply file I have uploaded.
Help please. Anyone. :frowning:

youll need 2.43rc1

youll need 2.43rc1

Yes but wouldn’t the latest version of blender be on their website? This is very strange. :frowning:
Please provide a link to this very strange 2.43rc1 you talk of.

http://www.blender.org/ -> first news item is Blender 2.43 Release Candidate 1

Hmmm … I have the same issue now. I installed 2.43RC1 and I am still seeing the error while loading PLY files. You said it works for you now - strange!? I guess I will wait for release version of 2.43

Cheers; 'Best,

shankar

The latest script (especialy copied into blender scripts dir) with Blender 2.43rc1 will work. Because I fixed the problem after 2.43rc1,.