# objs (�Name or NameList�,Object ,�Type or TypeList�,Optional search hierarchy index)

You can filter a type of objects within another object using this function

**objs (‘Name or NameList’,Object ,‘Type or TypeList’,(Optional) search hierarchy index) → List of object** This function lists objects within the given object that are of the provided type. **Name or NameList : Text** This input is an identifier. When left empty, it will display all objects of the designated type. If a name or a list of names is entered, only objects that adhere to both the specified naming convention and type will be listed. **Object : Object** This input specifies the object to be searched within. When input as 'self', it searches for objects of the provided type within the closest object in the hierarchy. **Type or TypeList : Object type** This input defines the types of the objects that are to be searched and listed. **(Optional) search hierarchy index : Number** ![](https://openbrim.atlassian.net/wiki/download/attachments/2167799892/image-20230823-123024.png?api=v2) As illustrated above, volume objects are listed using objs() function. VolumeObjectsInObject1 returns the list of all volume type objects while SquareVolumeObjectsInObject1returns the list of volume objects named as ‘Square’. To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objiddzsz0zv9o1b8njfq48knet> )
