Absolute values in text editor?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Jedijds
Posts: 126
Joined: Mon Jan 30, 2012 5:19 am

Absolute values in text editor?

Postby Jedijds » Mon Sep 17, 2012 6:05 pm

I was just wondering if there is a way of telling the text editor to take the absolute value of a number?
۞◄█°‖‖‖‖‖█ʭʭ╬(░▒▓▓▒▒▒▒▒▒▒▒▒)

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Mon Sep 17, 2012 6:42 pm

The text editor thinks numbers are just funny text. But Python has an absolute value function, abs().

Jedijds
Posts: 126
Joined: Mon Jan 30, 2012 5:19 am

Postby Jedijds » Mon Sep 17, 2012 7:31 pm

Thanks that works. :D
۞◄█°‖‖‖‖‖█ʭʭ╬(░▒▓▓▒▒▒▒▒▒▒▒▒)


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest