문제

I'm not following how to use the UI type ProgressBar in pyMel.

The old way, or the derivative of this was to do this:

cmds.progressBar('barName', edit=1, progress=50)

However I can't seem to figure out how to use the pymel version of this.

This is what I've tried:

ProgressBar('barName').setProgress(50)

This doesn't work obviously, however I'd much rather use the pymel version, it's cleaner and easier to read.

도움이 되었습니까?

해결책

You just have to specify from which module ProgressBar() is from. Here it's ui.

ui.ProgressBar('myPBar').setProgress(50)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top