On Wed Dec 17 2014 at 3:04:25 PM Dionysopoulou K. <K.Dionysopoulou@soton.ac.uk> wrote:
Dear all,

I am trying to use the yt export_obj function in order to be able to use yt in conjunction with Blender3D. I am very new to yt, so I tried the simple example you have here:

http://yt-project.org/doc/visualizing/sketchfab.html

and here

http://blog.yt-project.org

My problem is that even when using the data suggested in the webpage the code snippet provided fails to produce the mtl and obj files. After taking a quick look at the code I noticed the initial problem was caused by inconsistent units for the emissivity (maybe a typo in the docs?). I also changed ‘mpc’ to ‘Mpc’ as yt was complaining that the domain was too small.

I can't speak to other issues you're having, but this was something we changed going from version 2 to version 3 of yt.  In the old version, "mpc" meant Megaparsec.  In the new version, where we've added a formal unit system, "mpc" is interpreted as milliparsec.  We decided not to force mpc to mean Megaparsec to maintain backward compatibility in order to be consistent with other SI-prefixable units like meter.

See this e-mail thread:

http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/2013-December/012520.html
 
Even after these minor changes the export_obj function does not seem to work for me. The error messages are attached in the python notebook below (the notebook is basically just a copy and paste from the provided ones in the websites above).

The similar (but different) export_sketchfab function seems to work fine for the same data. I cannot really figure out what goes wrong with the export_obj function and any help would be very much appreciated.



Thanks in advance,


Kyriaki Dionysopoulou
=======================================================
Mathematical Sciences
University of Southampton
Southampton, SO17 1BJ, UK
K.Dionysopoulou@soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk>

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org