Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Python – where to find classifications?

  • Python – where to find classifications?

    Posted by Dave Mennenoh on September 7, 2022 at 12:28 pm

    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?

    Dave Mennenoh replied 3 years, 12 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy