-
Python – where to find classifications?
Hi guys, new here, new to Python, new to C4D. However I’m using it at work and need to learn some Python for it as well. Looking at another guys script I see this:
donorObj = doc.GetActiveObject() if donorObj.GetClassification() == 5155:I’ve been trying to find out where I find out this magic number – also what is the colon after it? Is that just Python?
I know that it’s supposed to be a face selection, but where do I find it in the docs? And is there a better way to reference a face selection?
Edit: I found after doing a bit more debugging that it seems most any object, parametric or polygonal, all return a 5155 type. So how does one know they have a set of faces selected?
Sorry, there were no replies found.