| Object descriptors are instances of the class obj_descriptor. Typically,
you loop over all object descriptors in the ith selection menu:
for j in range(yasara.selection[i].objects):
object=yasara.selection[i].object[j]
And then access various object properties: |
object.name
| The name of the object |
object.number.inyas
| The unique number/ID of the object in YASARA (a string, starting with
1) |
object.number.inall
| The sequential number of the object in the soup (a string, starting with
1) | |
You could then color the object red:
yasara.ColorObj(object.number.inyas+",Red")
|