splinecraft
7/20/2017 - 11:24 PM

create locators at selected control locations

create locators at selected control locations

import pymel.core as pm
from el_anim_utilities import anim_util as anim

selection = pm.ls(sl=True)

for sel in selection:
    coord = pm.xform(sel, q=True, ws=True, rotatePivot=True)
    loc = pm.spaceLocator(name='{}_loc'.format(sel))
    pm.xform(loc, s=(40, 40, 40), t=coord)
    anim.set_color(loc, 17)