def createControl(suffix='ctrl', groups=['Zro', 'offset], gimbal=None, gimbalSize=0.5, shape=SQUARE, connect=['parentCons']):
for obj in mc.ls(sl=1): ctrl = controller(shape) renCtrl = mc.rename(ctrl,'%s_%s' % (prefixName(obj), suffix)) grpPrnt = groupParent(groups, '%s' % prefixName(obj), suffix.title()) parCtrl = mc.parent(renCtrl, grpPrnt[-1]) cnntCtrl = renCtrl lockAttrObj(cnntCtrl, 'visibility')
....
The list command has a flag "long" so this should workmc.ls(sl=1, long = 1)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANC2f3RKR_2NhTCGnSrC9X5gooon9kZ-azS92iKx5swuZEvwRQ%40mail.gmail.com.
Hi,I have tried that, but still doesn't work.
On Thu, Jun 28, 2018 at 6:19 PM, Fuzes Marcell <fuzes....@gmail.com> wrote:
The list command has a flag "long" so this should workmc.ls(sl=1, long = 1)
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANC2f3RKR_2NhTCGnSrC9X5gooon9kZ-azS92iKx5swuZEvwRQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAE5XL931wBfwMAFmutC4EQ9WQhV480NjZ_TnxeAxC2wL%3DeV%3DfA%40mail.gmail.com.
def groupParent(groups, prefix, suffix): grps = []
for i in range(len(groups)): grps.append(mc.createNode('transform', n="%s%s%s_%s" % (prefix, suffix, groups[i], GROUP)))
if i > 0: mc.parent(grps[i], grps[i-1]) return grps