# Chapter 2: Importing primitive.obj into Blender fails

**URL:** <https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914>\
**Category:** Metal by Tutorials\
**Created:** [June 26, 2019, 11:54pm UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914 "2019-06-26T23:54:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrewer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jbrewer/32/108555_2.png) [@jbrewer](https://forums.kodeco.com/u/jbrewer)\
**Post date:** [June 26, 2019, 11:54pm UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/1 "2019-06-26T23:54:13Z")

</div>

When I try to import the cone into Blender (freshly downloaded 2.79b). I get an “IndexError: list index out of range” message, and the import fails.

Any idea what’s wrong?

---

<div class="post-metadata">

**Author:** ![caroline](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/caroline/32/111867_2.png) [@caroline](https://forums.kodeco.com/u/caroline)\
**Post date:** [June 27, 2019, 1:16am UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/2 "2019-06-27T01:16:58Z")

</div>

@jbrewer - Hi and welcome to the forums!

Did you change the `Ks` specular value in **primitive.mtl** as described on page 48? The Playground exporter does not export the cone in the format that Blender expects.

---

<div class="post-metadata">

**Author:** ![jbrewer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jbrewer/32/108555_2.png) [@jbrewer](https://forums.kodeco.com/u/jbrewer)\
**Post date:** [June 27, 2019, 6:40am UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/3 "2019-06-27T06:40:05Z")

</div>

![11%20PM](https://files.chunter.kodeco.com/original/3X/f/c/fc6419470b3c8d91cd8ca3e7235e8dbeffa14d0d.png)

---

<div class="post-metadata">

**Author:** ![caroline](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/caroline/32/111867_2.png) [@caroline](https://forums.kodeco.com/u/caroline)\
**Post date:** [June 27, 2019, 7:19am UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/4 "2019-06-27T07:19:02Z")

</div>

Did you edit the .mtl specular Ks value?

---

<div class="post-metadata">

**Author:** ![jbrewer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jbrewer/32/108555_2.png) [@jbrewer](https://forums.kodeco.com/u/jbrewer)\
**Post date:** [June 27, 2019, 5:53pm UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/5 "2019-06-27T17:53:42Z")

</div>

That was indeed the problem. I skimmed over the obj section, not realizing I had to make a change to the material file.

Thanks!

---

<div class="post-metadata">

**Author:** ![caroline](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/caroline/32/111867_2.png) [@caroline](https://forums.kodeco.com/u/caroline)\
**Post date:** [June 28, 2019, 12:48am UTC](https://forums.kodeco.com/t/chapter-2-importing-primitive-obj-into-blender-fails/74914/6 "2019-06-28T00:48:37Z")

</div>

I’m glad you got it sorted. It’s annoying that the obj export doesn’t match Blender’s requirements!

I hope you enjoy the rest of the book.
