mattforni
06-18-2009, 03:02 AM
Hi all,
So I'm trying to create an automatic biped rigger based on a few locators. My UI has several selection boxes that select one locator at a time to be manipulated (translated). After the locator has been deselected I want to update a float field group to display the locator's new position. How does one go about setting the value of a floatFieldGrp, or a floatField for that matter, using python. As of right now I've tried using the setAttr method like so:
import maya.cmds as mc
root = mc.window(rtf=True)
mc.rowLayout()
fField = mc.floatFieldGrp(nf=3)
mc.showWindow(root)
mc.setAttr(fField+'.v', [1, 2, 3])
but run into the following error
# RuntimeError: No object matches name: window17|rowLayout71|floatFieldGrp56.v
so my question is how do you set the value of an already create floatFieldGrp?
Thanks in advance.
- Matt
So I'm trying to create an automatic biped rigger based on a few locators. My UI has several selection boxes that select one locator at a time to be manipulated (translated). After the locator has been deselected I want to update a float field group to display the locator's new position. How does one go about setting the value of a floatFieldGrp, or a floatField for that matter, using python. As of right now I've tried using the setAttr method like so:
import maya.cmds as mc
root = mc.window(rtf=True)
mc.rowLayout()
fField = mc.floatFieldGrp(nf=3)
mc.showWindow(root)
mc.setAttr(fField+'.v', [1, 2, 3])
but run into the following error
# RuntimeError: No object matches name: window17|rowLayout71|floatFieldGrp56.v
so my question is how do you set the value of an already create floatFieldGrp?
Thanks in advance.
- Matt
