I have a problem with the customImagePlane example in the maya docs.
It seams not to work and I guessed that it is this part of the code
which is wrong, but I can not solve it on my one.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

charPixelPtr = image.pixels()
for i in range( 0, size, 4):
     alphaIndex = (i*4)+3
     alpha scriptUtil.getUcharArrayItem(charPixelPrt, alphaIndex)

     #Here it comes:
     scriptUtil.setUcharArray( alpha*(1.0 – self.fTransparency),
alphaIndex)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

In the docs it said that this need to be a unsigned pointer, than the
index and than a value.
setUcharArray <cid:[email protected]>(unsigned
char *var, unsigned int index, int value)

In the maya example it is obvious wrong, or am I missing a point?
Alpha seams to be a unsigned int, but not a pointer.
It would be great if anybody could help me with this.

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to