hi everyone,
i was trying to create a little script that aligns objects, with a window prompt. So i have written this code
ALIGNER TOOL = mc.window(title=“object aligner tool”, s=False, wh=(300,400) )
mc.columnLayout(adj=True)
mc.text(l=“select source, then the target!”)
mc.button(l=“Align!”, w=300, h=400, c=“Objaligner()”)
mc.showWindow(ALIGNER TOOL)
def Objaligner():
pntcst=mc.pointConstraint()
mc.delete(pntcst)
I can’t figure out what’s the problem… it gives me a simple Syntax error, without further indications.
what’s the problem?