Home Website Youtube GitHub

Pre-Draw QT Window

Hi!

I’m busy building a set of custom components at work, one of which is based on the classic chain_01 component.

When you first add one of the chain_01 guides to your scene, you normally get a pop-up window asking how many joints you want, and spacing.
I’d like to use this same window in my component but I can’t seem to figure out where that window is coming from - It does not have it’s own .ui file for chain_01 so I assume it has to be somewhere in the guide.py file.

If somebody could point me in the right direction, I would appreciate it!

Hello,
Since the window is very simple (if I recall correctly) is using default Maya ui commands

Usually, you set the transforms in the guide by name. But if you set it with # in front it will understand that need to pop the window

image

you don’t need to implet the window again to use it.

2 Likes