I cannot get locked or hidden objects using ObjectsByType.
I have some normal objects, some locked, some hidden, some locked and hidden.
According to the documentation, a state parameter of 2 or 4 should only select Hidden or Locked objects. However, no objects are selected.
print(len(rs.ObjectsByType(0, select = False, state = 2))) -> outputs 0
print(len(rs.ObjectsByType(0, select = False, state = 4))) -> outputs 0
Using state = 0 selects all objects, and state = 1 only normal objects, as expexted.
I noticed that in the documentation, the state parameter is defined as a boolean, this might be the issue?