Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I used Maya’s script editor to write the code, and I encountered a problem in it. I want to get the pixel density of my selected part. This function is available in Maya’s UV toolkit. Click the Get button as shown in the figure below. Get a number in the back box, but I don't know how to get this number through code. Including me, I can't get the 512 after the Map Size below.
The code I use is
mel.eval('uvTkDoGetTexelDensity')
当我打印它,我得到没有。也许此功能不会返回值,但会将获得的值给 UI 界面后面的框。
4 月 1 日, 吉马亚 · 伊金 · 吉亚 · 吉亚 · 吉特 · 吉夫 · 特夫特 · 特瓦特 · 特格特 · 吉夫(三)次次次的"大号"
我使用的代码是
mel.eval('uvTkDoGetTexelDensity')
打印打印可能这个功能没有返回值,而是把得到的值给了UI界面后面的方框里。
Solved! Go to Solution.