[Closed] Edit_Normals.ConvertFaceSelection not working?
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.
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…
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?