Home Technical Talk

query texture dimensions from UV editor

polycounter lvl 10
Offline / Send Message
chronic polycounter lvl 10
I cant seem to get the textureWindow function working right, imageSize always returns [-1,-1], I'm not sure what I'm doing wrong as other operations on the UV editor work fine thru this function.
uvTextureView = pm.getPanel(scriptType='polyTexturePlacementPanel')
currentTextureSize = pm.textureWindow(uvTextureView[0],q=True, imageSize=True)
print currentTextureSize

Replies

Sign In or Register to comment.