PDA

View Full Version : Edit_Normals.ConvertFaceSelection not working?


scorpion007
03-10-2006, 07:20 AM
Hmm, when I try to call the ConvertFaceSelection method on a certain face index, it runs without any errors, but fails to change my output bitArray.

I basically am doing similar to the example given in the docs but using that function instead of the ConvertVertexSelection as they show.
I am passing both args as references.

myMod.ConvertFaceSelection &faceIndex &faceNormalIndexes

faceIndex being a 1 entry bitArray. I expected it to make faceNormalIndexes contain 4 normal indexes, but it stays empty.

I verified that the modifier is a valid object, and that both other variables are valid. It gives me no errors, but also the incorrect result.

scorpion007
03-11-2006, 03:45 AM
Hmm, the wierd thing is that it works in a simple little script, but not in my main function.

I made a separate little functuon which just uses $ as the object to operate on, and that works. But in my function im passing an object as a reference, like so:

fn writeGeoObject &oSnap = ( ... )

Could it be something to do with that? I even tried adding the optional node: parameter, but still didnt help...

scorpion007
03-11-2006, 06:48 AM
I just realised another thing. By calling:
oSnap.Edit_Normals.GetNumNormals I get 0. Same for GetNumVertices method. Why is this happening? Its not reading the correct data or something..

It works in a simple isolated script, but not now. Once again, no errors, but 0 vertices. How can that be?

CGTalk Moderation
03-11-2006, 06:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.