Invalid syntax error, why?

Invalid syntax error, why?

Anonymous
Not applicable
17,396 Views
1 Reply
Message 1 of 2

Invalid syntax error, why?

Anonymous
Not applicable

So once I've played this script down below, this errors occured: line1:invalid syntax, why is that?

 

import maya.cmds as cmds

pivot_ctrl - "brick_pivot_ctrl"
orient_ctrl - "brick_orient_ctrl"
geometry - "brick_geo"

loc - cmds.spaceLocator()[0]

cmds.delete(cmds.parentConstraint(geometry, loc)

cmds.setAttr(pivot_ctrl+".t", 0, 0, 0)
cmds.setAttr(pivot_ctrl+".r", 0, 0, 0)

cmds.delete(cmds.parentConstraint(loc, orient_ctrl))

0 Likes
Accepted solutions (1)
17,397 Views
1 Reply
Reply (1)
Message 2 of 2

mspeer
Consultant
Consultant
Accepted solution

Hi

 

Maybe

pivot_ctrl = "brick_pivot_ctrl"

instead of

pivot_ctrl - "brick_pivot_ctrl"

 

Replace all "-" with "=" then.