Blender General Questions

General discussion and questions about XNALara go here.

Moderators: ObscureMemories, Runa, Love2Raid

User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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.
User avatar
iheartibuki
Moderator
Posts: 6552
Joined: Sun Aug 19, 2012 9:59 am
Custom Rank: Fappy Bird
Location: The Land of the Free
Contact:

Re: Blender General Questions

Post by iheartibuki »

BTW, which book are you reading? :D
"TheyÔÇÖre not only moron but also Galapagosian Lolita Complexed Chicken."

User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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.
User avatar
iheartibuki
Moderator
Posts: 6552
Joined: Sun Aug 19, 2012 9:59 am
Custom Rank: Fappy Bird
Location: The Land of the Free
Contact:

Re: Blender General Questions

Post by iheartibuki »

Oh cool, I might go look for that book then. :D
"TheyÔÇÖre not only moron but also Galapagosian Lolita Complexed Chicken."

User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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
User avatar
iheartibuki
Moderator
Posts: 6552
Joined: Sun Aug 19, 2012 9:59 am
Custom Rank: Fappy Bird
Location: The Land of the Free
Contact:

Re: Blender General Questions

Post by iheartibuki »

LOL! Is that the only Blender-Python scripting book available out there?

Good programmer /= good teacher :D
"TheyÔÇÖre not only moron but also Galapagosian Lolita Complexed Chicken."

User avatar
Love2Raid
Moderator
Posts: 6103
Joined: Sat Aug 18, 2012 6:10 am
Custom Rank: w

Re: Blender General Questions

Post 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. :)
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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!
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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.
User avatar
semory
Site Admin
Posts: 7755
Joined: Sat Aug 04, 2012 7:38 pm
Custom Rank: Kitty pu tu tu lay!
Location: Torrance, CA

Re: Blender General Questions

Post 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.
Post Reply