On Fri, Dec 8, 2017, 7:25 AM MA07 <[email protected]> wrote:

> hello,
> I already google it .however.couldn't really understand why people use
> hypen like this.
>
> sectionWidth=cmds.gettattribute()
>
> cmds.move(-sectionWidth) <---- in this case.
>

It has the same meaning in basic math. It negates a numeric value.

x = 1
y = -x          # -1
y = -1 * x    # -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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/1fe39550-331d-4945-b7bc-da6a46fdc000%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1fe39550-331d-4945-b7bc-da6a46fdc000%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA02wTHAHg_osGye7gpceR0JSw76HUXz4zHNT-HR8YGZ6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to