How can I get the Images value from Project Window using Python?

How can I get the Images value from Project Window using Python?

Peteman12
Advocate Advocate
693 Views
1 Reply
Message 1 of 2

How can I get the Images value from Project Window using Python?

Peteman12
Advocate
Advocate

I want to get access to the Images directory from the Project Window with python. Is there a cmds or pymel command that would let you query it?

0 Likes
Accepted solutions (1)
694 Views
1 Reply
Reply (1)
Message 2 of 2

Peteman12
Advocate
Advocate
Accepted solution

This seems to work:

vals = cmds.workspace(fileRule = True, q=True)
val_ind = vals.index("images") +1 #get the index of the value next to u'images'
print(vals[val_ind])

 

0 Likes