quick question from a newbie to mel.
what would i do to get polyEditUV -query into a text field into a window? I was going to add some stuff to a script a friend wrote to edit UVs.
thanks in advance!!!
quick question from a newbie to mel.
what would i do to get polyEditUV -query into a text field into a window? I was going to add some stuff to a script a friend wrote to edit UVs.
thanks in advance!!!
Hey,
My advice is check out the GUI creation section of the online mel docs: its really not too bad.
Its not fresh in my mind, but I believe it is as simple as defining a textField object within your window or layout.
You can store the values returned by your UV query in a variable and get the textField to display them by using the textField command in edit mode:
textField -edit -text $values
There is also a textFieldGrp which bundles fields with labels, very useful.
Depending on the values you need to display, you can use textField, intField, floatField...
Once again, the online docs will walk you through this, more or less.
Good luck,
Malcolm
now the trick seems to be convering an array of floats into either a column/row view or just limiting my selection to the first two values in the array... not quite sure what im going to do. thats a few weeks of reading and learning in my case.
ive read and printed out the building UI section, it did help a lot but left me wondering about a bunch of stuff that im sure would be covered in a simple programming class...
oh well time to twiddle and type and hope i can come up with something that works
cheers
be it floadField, textfield, intField its still the wrong object type if i have a UV selected.
global proc uvQuery()
{
window -t uvQuery;
columnLayout;
$uvs = polyEditUV -q;
floatField -e $uvs;
}
figured it out...
window;
columnLayout;
$uv = polyEditUV -q;
$u1 = $uv[1];
$v1 = $uv[2];
floatField -v $u1;
floatField -v $v1;
showWindow;
goodie, now i can sleep...
Cool ![]()