decal projection

oooo. thanks for the link!

Thanks !

Mike

I try it !
… but not Works for me… also with this …and the latest CVS!

If you’re getting this error :

  File "image_bake_decal.", line 69, in error
AttributeError: 'module' object has no attribute 'B'

It’s because the code on line #69 in image_bake_decal.py


69	B.B.Draw.PupMenu('Error%t|' + text)

should apparently be :


69	B.Draw.PupMenu('Error%t|' + text)

One too many “B”'s in there :slight_smile:

… I also realized that I actually have all the current CVS python scripts in my “CVS- checkout” directory (<blender source directory>\release\scripts). I don’t see a way of downloading all of the scripts at once from the previous link, using cvs is the way to get them … unless there is a “daily archive” somewhere ?

Mike

Having fixed that error, I now get :

“Select at least 1 UVTex mesh and a quad mesh for the decal”

So what is :

a UVTex mesh ?

a quad mesh ?

I have selected a text object and another mesh object, with the intent of “wrapping” that text along the object, as I assumed that’s what the original post was illustrating.

When that didn’t work, I UV mapped an image onto a plane, then selected it and another plane, I get :

File “image_bake_decal.”, line 472, in ?
File “image_bake_decal.”, line 465, in main
File “image_bake_decal.”, line 335, in imageDecalBake
ValueError: face has no texture values

Apparently I am confused … again :smiley:

Mike

i have not tried this yet but baybe it wants a texture slot besides the uv. (i.e. theres and image textured as ‘uv’ to the plane)

both objects must be uv mapped.
the projector mesh must be a plane with 1 image on it- mapped standard 1:1

Material/Texture slots arnt used

I tried using two UV mapped planes, still get the error message

“Select at least 1 UVTex mesh and a quad mesh for the decal”

So to repeat my previous questions :

What is :

a UVTex mesh ?

( is that just any mesh object that’s been UV mapped with an image) ?

a quad mesh ?

If anyone else here would like to share the secret of how this works that would be great :confused:

Can the script be used to wrap text onto an object? … or else what is the purpose?

It would be nice if you could increase your documentation / explanation to coding ratio :smiley: (~900 lines of code -> 3 lines of explanation)

Mike