Page 4 of 53

Re: Blender General Questions

Posted: Thu Feb 07, 2013 7:40 pm
by semory
Alt + O works, so it's something wrong with my python code... hate it when you type in stuff exactly the way it is in the book and then it doesn't work when you try it :D.

Re: Blender General Questions

Posted: Thu Feb 07, 2013 7:44 pm
by iheartibuki
BTW, which book are you reading? :D

Re: Blender General Questions

Posted: Thu Feb 07, 2013 7:55 pm
by semory
Blender 2.49 Scripting by Michel Anders, pg. 223 shows code to add a file texture to a material and many pages before that it shows how to link a material to a mesh object.

Re: Blender General Questions

Posted: Thu Feb 07, 2013 7:57 pm
by iheartibuki
Oh cool, I might go look for that book then. :D

Re: Blender General Questions

Posted: Thu Feb 07, 2013 8:02 pm
by semory
it's not a very fun read :D
i'd much rather go to the liquor store and pick up one of those you know what mags and then hit up the bathroom

Re: Blender General Questions

Posted: Thu Feb 07, 2013 8:24 pm
by iheartibuki
LOL! Is that the only Blender-Python scripting book available out there?

Good programmer /= good teacher :D

Re: Blender General Questions

Posted: Fri Feb 08, 2013 4:27 am
by Love2Raid
I think Blender recalculates vertex normals once you import something, and I think also when you go to Edit mode and back... There is also no way to make vertex normals between 2 meshes 'align' properly, like that welding thing in 3ds Max. :/

About those white meshes, it's indeed a missing texture in the image editor. Once you load the right one there, it will appear in textured mode as well. :)

Re: Blender General Questions

Posted: Fri Feb 08, 2013 7:39 am
by semory
oh ok, so that's why huh? Textures have to also be loaded in the Texture Editor as well for them to show up? Cool, I'll look through the book to see how to do that through the Python interface. Thanks guise!

Re: Blender General Questions

Posted: Fri Feb 08, 2013 7:55 am
by semory
Yeah, Marv, that book is considered the best one. I think there's one or two more Blender books that have chapters on Python scripting, but this is the only one completely dedicated to Python scripting for Blender. There are also a couple online books/manuals written by amateurs, but those are poorly written.

Re: Blender General Questions

Posted: Fri Feb 08, 2013 10:22 am
by semory
Still haven't solved the problem via scripting but one thing I noticed... when I render the triangles are textured LOL! just not in the 3D view :D.