PDA

View Full Version : Pythonize your life!



JCG
09-27-2012, 01:37 AM
Hi!

MIT's Introduction to Computer Science and Programming course is about to start (on Monday Oct 1st)

The language they will be teaching is Python 2.7, so this should hopefully be great for Lightwavers.

The class is free on the edx website and the teacher says that the textbook is optional and will not be referenced in class.

I just got in, as I've never touched Python, and it would be great if there were lots of other Wavers to shout out to, in case things get hairy ^_^;;.

https://www.edx.org/courses/MITx/6.00x/2012_Fall/about

Brötje
09-27-2012, 02:05 AM
Great find! I'll check it out.

Thanks!

probiner
09-27-2012, 02:10 AM
So we're going to do a LW Python study group chat on Skype, to ease up those homeworks? :D

Brötje
09-27-2012, 02:12 AM
So we're going to do a LW Python study group chat on Skype, to ease up those homeworks? :D

Sounds like a good idea, albeit a joke... ;)

kopperdrake
09-27-2012, 03:01 AM
Actually, this sounds interesting!

Can anyone please let me know how Python would be useful to a LightWave user? Can anyone point me to an example or two where Python was used?

I'd love the excuse to learn it, but we're a small studio so I'm not sure if it would be relevant?

RebelHill
09-27-2012, 03:06 AM
Ah programming... Im like a monkey with a hammer... I'm IN!!! See y'all there.

Brötje
09-27-2012, 03:28 AM
Ah programming... Im like a monkey with a hammer... I'm IN!!! See y'all there.

If anyone is up for the Skype idea? Send me a PM if you want my Skype details and we'll talk...literally...

probiner
09-27-2012, 03:43 AM
Calendar
https://www.edx.org/static/content-mit-600x~2012_Fall/handouts/6.00x_at-a-glance.0141bc7e897d.pdf
Course Info
https://www.edx.org/static/content-mit-600x~2012_Fall/handouts/6.00x_syllabus.b51ffc0f9a07.pdf



If anyone is up for the Skype idea? Send me a PM if you want my Skype details and we'll talk...literally...

No need to PM you, the skype icon under your name takes us there ;)



Thanks a lot, JCG for the heads-up.

JCG
09-27-2012, 04:43 AM
Can anyone please let me know how Python would be useful to a LightWave user?Probably the most simple use is when you have to repeat the same action 10000 times. Then you'd tell Python to do it 10000 times and go out for tea, instead of doing it yourself.

Not all Lightwave actions and commands are available through Python yet, but I understand that the plan is to get there eventually.

Also, Ms. Hachigian explained how she used it to modify the scene files, in the Terranova thread.

Netvudu
09-27-2012, 04:58 AM
Ok. I already know some Python, but some of the stuff covered there was pretty interesting...I´m in!

BigHache
09-27-2012, 05:38 AM
Interesting. Looks like it will be the same course currently available on MIT Open Courseware. Registered!

kopperdrake
09-27-2012, 05:44 AM
Thanks JCG,

I'm sure I've come across those situations in the past. I'm in :thumbsup: I haven't touched programming since the BASIC days *years* ago!

evenflcw
09-27-2012, 06:00 AM
It's a bit (actually more than a bit) overkill if all you are looking for is to learn python in order to write lightwave plugins. It seems very heavy on the engineering side! I'd rate it as 20% python/intro to programming, 80% software engineering/problem solving/math. It's not really teaching python as it is teaching software engineering "using python". Then again, no doubt, this course is likely great for anyone wanting to take a giant leap from non programmer to fairly pro programmer.

As mentioned by BigHache, earlier courseware (video lectures): http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/video-lectures/

probiner
09-27-2012, 06:03 AM
yes the math part is scarying me :)

Thank you for the video links, they'll be a nice heads up.


Also why think of LW alone. If there's something that can be done in a companion app like Blender where python might have better access, why not do things there too :)

Brötje
09-27-2012, 06:06 AM
Me too. I ain't no mathematical genius.

Netvudu
09-27-2012, 06:19 AM
It's a bit (actually more than a bit) overkill if all you are looking for is to learn python in order to write lightwave plugins. It seems very heavy on the math/engineering side! I'd rate it as 20% python/intro to programming, 80% software engineering/problem solving/math. It's not really teaching python as it is teaching software engineering "using python". Then again, no doubt, this course is likely great for anyone wanting to take a giant leap from non programmer to fairly pro programmer.


actually with some Python knowledge already, it was some of that OTHER content that I was attracted to. I´m sure it will be useful.

evenflcw
09-27-2012, 06:38 AM
actually with some Python knowledge already, it was some of that OTHER content that I was attracted to. I´m sure it will be useful.
Same as me. I got enough of pythons basics down already to be able to write better python plugins (grace a language features and prior experience of c-sdk) than I could lscript (which I still consider myself to be very knowledgeable in). But I was always interested to learn a more professional/academic approach to software programming/engineering. I work around people with engineering degrees and they do have a certain mindset and software development skills I lack. So I'll be keeping an eye on this, at the very least. For sure it'll be more fun with wavers around! We'll be the smartest 3d forum around by January. And NT will either get a pounding or sympathetic understanding by all the new software development-besserwissers. :)

EDIT: The math also scares me abit. But it probably won't be that tough. And if it is, you'll have among the best teachers around to guide you through it.

kopperdrake
09-27-2012, 07:41 AM
The maths doesn't scare me, but the 12hrs/wk does - if it's aimed at fairly hefty uses then perhaps it's a bit overkill for me. I just thought it would be a great way to be forced into attending something regular, rather than relying on myself to put aside an evening every week to learn it.

zardoz
09-27-2012, 09:02 AM
I'm in. I hope that my math (and age lol) will be enough.

BigHache
09-27-2012, 11:06 AM
The math hasn't been hard. Abstract concepts of math through iterations of a list or tuple, less straight-forward than x = 5/2.

DogBoy
09-27-2012, 12:10 PM
I'm in.

chco2
09-27-2012, 01:58 PM
Think I'll join as well !

Burchigb
09-27-2012, 06:43 PM
I just signed up for the class
thanks for the info!!!!!

Andrewstopheles
09-27-2012, 09:42 PM
This is exactly what I need, I think. I'm in!

- - - Updated - - -

This is exactly what I need, I think. I'm in!

Ernest
09-27-2012, 09:57 PM
Of all the crazy things this forum has made me do... going back to college at this stage of the game

I'm in.

I'd probably feel left out in a couple of months when everyone is talking in binary.

fablefox
09-27-2012, 10:11 PM
Actually, this sounds interesting!

Can anyone please let me know how Python would be useful to a LightWave user? Can anyone point me to an example or two where Python was used?

I'd love the excuse to learn it, but we're a small studio so I'm not sure if it would be relevant?

You didn't watch LW videos?

Python allow you to play chess right inside LW! No need for a boss button like the old DOS days now! :D

Why do I get a feeling that Tetris version is coming...:devil:

Seriously, I think the question have been nicely answered.


----------------------------------------------------
Help support my student short http://igg.me/p/239044

Brötje
09-28-2012, 01:03 AM
All right, we have a study group at a prestigious college ( sort of ), now we need a fraternity and we're set!

RebelHill
09-28-2012, 03:03 AM
now we need a fraternity and we're set!

How's... γψ Grab ya? Too bad there's no greek for "3d".

roctavian
09-28-2012, 05:58 AM
Looks a bit scary&exciting the same time. :)
I`m in.
Thanks for the link

BigHache
09-28-2012, 06:17 AM
Of all the crazy things this forum has made me do... going back to college at this stage of the game

I'm in.

I'd probably feel left out in a couple of months when everyone is talking in binary.

10110101100101010001010101001011101001001001011010 10100!!!

Netvudu
09-28-2012, 06:31 AM
011011000110111101101100001000010010000001000010
011010010110111001100001011100100111100100100000
011100100110111101100011011010110111001100100001

http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/Binary_To_Text.asp

probiner
09-28-2012, 07:17 AM
:p

10101111101000001011001010010111001010110001010011 0000110111110001010011101
11011011000101111001110011101011011100010101111010 0101110001110111100100110
00111000011110100111111110001110000100100110101001 1100111001010101010010001
10001001100001011100001110001100010110101010110111 1100110111101010101100010
11001110001000101011001010011101000110001001110111 1010010001001000111110110
00010000010110011000111101111110111010000101000001 0111001101110001010111111
10111111010000001101110000101100000001100000111010 0011101011110010100000111
01001111001001101100101010010000010100111101101110 1010000110111011110001010
01011110010011100001101001101000000111001011001111 0010101001000100101111011
00001010010001110000101101011101001111101011001101 0101010111010010001101000
11001000100000100101000011100111011101101111101100 0111001010000010010110110
11110011100000111001111111000110110100101001011110 0111111010101000110001001
01101110010101100011101010111110100101000101110101 0010111001101111101111010
11001001110011101100101001010010110101011001010010 0011101110101011110100111
00000000001100111000111010001101011000110010010110 1111111011011000110001000
00110000110111101001011000100001100001111011100100 1010000001110110001001101
00101111111100111100100100001111111111100100100011 0101001101101101000010011
10111101010111110110001010001100001001000000111000 0001100101110111011111111
10000001010001101000110001100111100111010000110110 1101100001100111001111001
01001010100011010011001011110110110110011001010010 1101010001000111011011111
01011001010110010110101011100010010001111101110011 1101101101110001111110010
01001101000111101110100001110110011011111110001110 0110110100000001011001100
00010010101011000110101110110111011110000111111011 0011011000111100111000000
10111100101100000010110000011111110100111010100110 1010110010000100100010011
01001110000100101010010010011101010011001000001001 0101110100111000110001011
10001000100000000000011011110111110010110111100010 0000101011010100101100001
01000110101010011100010010110100001111000000010010 1101011001100001011111010
11101000100001001011111000011001010100101001011001 0110110000111100100000011
01101000011101101110000001100101101000000010011011 0101110010011101000110101
01001110111100010100000001101001110000000101000010 0000100110011100000001001
10010101110101100111111001011001010000110110100110 1101011001001101111110011
00011011101101101000001011111010001110011111010000 1000011110100000011010111

fablefox
09-28-2012, 09:44 AM
:p

10101111101000001011001010010111001010110001010011 0000110111110001010011101
11011011000101111001110011101011011100010101111010 0101110001110111100100110
00111000011110100111111110001110000100100110101001 1100111001010101010010001
10001001100001011100001110001100010110101010110111 1100110111101010101100010
11001110001000101011001010011101000110001001110111 1010010001001000111110110
00010000010110011000111101111110111010000101000001 0111001101110001010111111
10111111010000001101110000101100000001100000111010 0011101011110010100000111
01001111001001101100101010010000010100111101101110 1010000110111011110001010
01011110010011100001101001101000000111001011001111 0010101001000100101111011
00001010010001110000101101011101001111101011001101 0101010111010010001101000
11001000100000100101000011100111011101101111101100 0111001010000010010110110
11110011100000111001111111000110110100101001011110 0111111010101000110001001
01101110010101100011101010111110100101000101110101 0010111001101111101111010
11001001110011101100101001010010110101011001010010 0011101110101011110100111
00000000001100111000111010001101011000110010010110 1111111011011000110001000
00110000110111101001011000100001100001111011100100 1010000001110110001001101
00101111111100111100100100001111111111100100100011 0101001101101101000010011
10111101010111110110001010001100001001000000111000 0001100101110111011111111
10000001010001101000110001100111100111010000110110 1101100001100111001111001
01001010100011010011001011110110110110011001010010 1101010001000111011011111
01011001010110010110101011100010010001111101110011 1101101101110001111110010
01001101000111101110100001110110011011111110001110 0110110100000001011001100
00010010101011000110101110110111011110000111111011 0011011000111100111000000
10111100101100000010110000011111110100111010100110 1010110010000100100010011
01001110000100101010010010011101010011001000001001 0101110100111000110001011
10001000100000000000011011110111110010110111100010 0000101011010100101100001
01000110101010011100010010110100001111000000010010 1101011001100001011111010
11101000100001001011111000011001010100101001011001 0110110000111100100000011
01101000011101101110000001100101101000000010011011 0101110010011101000110101
01001110111100010100000001101001110000000101000010 0000100110011100000001001
10010101110101100111111001011001010000110110100110 1101011001001101111110011
00011011101101101000001011111010001110011111010000 1000011110100000011010111


Meh. I tried binary to code but there is no special message :-(

Should have use a special message that coloured to look like the logo :-)

Afalk
09-28-2012, 02:16 PM
This should be interesting -- signed up for the class and am ready to get started on oct 1!

wyattharris
09-28-2012, 03:27 PM
A computer science class taught by MIT, AND its free. Hell yes I'm in! Signed and ready to go.

probiner
09-28-2012, 08:01 PM
All right, we have a study group at a prestigious college ( sort of ), now we need a fraternity and we're set!
Banner is on : )

http://i153.photobucket.com/albums/s202/animatics/Lightwave/LWPython.png

fablefox
09-29-2012, 03:57 AM
Banner is on : )

http://i153.photobucket.com/albums/s202/animatics/Lightwave/LWPython.png

Nice logo.

Interestingly, I read books on Python 3 months ago (Blender uses 2.x), and now have to downgrade to 2.7. But these books already mention the differences of 2.x and 3.x. Oh well...

probiner
09-29-2012, 05:30 AM
There's also this one that seems more broad, less intensive and lasts longer.

https://www.edx.org/courses/HarvardX/CS50x/2012/about#

jasonwestmas
09-29-2012, 08:19 AM
Forget this! I like my sliders, buttons, nulls and cursors just fine. ;)

oh and nodes, nodes are cool too.

Brötje
09-29-2012, 11:41 AM
10110101100101010001010101001011101001001001011010 10100!!!

How dare you talk about my mother that way? :D

Afalk
09-29-2012, 12:03 PM
The other class looks interesting as well -- perhaps after I have CSx600 under my belt :P

Cryonic
10-01-2012, 07:03 PM
I know python and I know other languages... I'd rather never touch python because of the simple idiocy of whitespace as code format... It makes it next to impossible to easily and properly reuse code or even share code since lots of things break the amount of whitespace (such as browsers treating whitespace as nothing when it comes to formatting).
I'd rather use a language that had better control of Code blocks, like perl, or php.

wyattharris
10-01-2012, 09:59 PM
Man, Python is really loose. Looks like it lets you get away with a lot.

I jumped the gun and installed 2.7.3 about half way through and then saw they have a specific version to install. I wonder if it matters either way.

Cryonic
10-01-2012, 10:55 PM
As long as you're on a 2.7.x and so are they, then it should be fine. If you installed 3 and they're using 2.x then you'll be off as lots changed/broke with 3.0

JCG
10-02-2012, 01:54 AM
I don't know. The basic Python installation is about 15 megs and the one from the course (EPD Free) is almost 90 megs. Supposedly, it comes with 4 libraries pre-installed. So, if you got a basic installation maybe you'll need to install those libraries later on.

BTW, we got an email today saying that there's still time to enroll, if anyone else wants to join.

probiner
10-23-2012, 05:55 AM
Hello
So some of us ended Week 3 and has been a nice experience so far. I think week 1 and 2 is something anyone should take for any time span. Because it can makes a nice simple tools to do macros operations with loops and conditionals.

PyScripter (https://code.google.com/p/pyscripter/) - Python IDE + Shell.
repl.it (http://www.repl.it) - Online Shells, including Python.
CLCL (http://www.nakka.com/soft/clcl/index_eng.html) - Clipboard Manager that allows multipe values to be pasted. Works with LW input fields.
WinMerge (http://winmerge.org/) - Highlights differences between texts.

Cheers

wyattharris
10-25-2012, 03:51 PM
I was about to ask if anyone is still in the program. Working through week 4 now, I need to hustle to get this week done, but it has been a really great experience so far. Much different angle than my previous programming classes. That last Problem Set was a nice confidence booster after the previous assignments. You guys still meeting in Skype?

probiner
10-25-2012, 04:08 PM
Yup, though we had casualties :D Come around!

adk
10-25-2012, 06:40 PM
I'm way beyond what would be considered fashionably late ... so I hope I can catch up & keep up.

wyattharris
10-26-2012, 07:34 AM
Yup, though we had casualties :D Come around!Ah cool, Skype didn't save the group name for whatever reason (I don't use it much) so I've been collaborating with my gamer group in vent.

Netvudu
10-26-2012, 07:53 AM
I´m on another course simultaneously, so I´m struggling not to fall behind. I´m still on the beginning of Week 2 :p

Andrewstopheles
11-03-2012, 06:15 PM
Well it's midterm time. I was a little irritated that they released Week 5, due Nov 7th, and then unloaded the midterm which is due Nov 4th (tomorrow). The concurrent work is too much, considering I've been spending probably 20 hrs a week on this 12 hr a week course.
Weeks 1 through 4 have been great, I really have learned a great deal. I did the practice exams today and failed by a small margin. I am put off by this because I do understand everything that's been taught so far. The practice exam questions are tricky so I expect the same difficulty on the real exam which I am writing tomorrow.
I read an article today that stated that only 4% of folks actually complete these courses. I have historically been in the top 6%. So I'm screwed! lol

evenflcw
11-03-2012, 07:33 PM
"Practice exams"? Where are those located? (Please don't link directly to anything that risk starting the actual exam timer)
Or do you mean the "problem sets"?

Andrewstopheles
11-03-2012, 07:36 PM
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/exams/

- - - Updated - - -

I called them practice exams because that's how I used them. I did poorly.
When I write the actual exam tomorrow I intend to pass, if only by a small margin. ;)

evenflcw
11-03-2012, 07:37 PM
Oh. Thanks!

wyattharris
11-04-2012, 01:48 PM
Well it's midterm time. I was a little irritated that they released Week 5, due Nov 7th, and then unloaded the midterm which is due Nov 4th (tomorrow). The concurrent work is too much, considering I've been spending probably 20 hrs a week on this 12 hr a week course.
Yeah, this threw me a bit. There's only one question that has to deal with Week 5 and it was answerable by the second lecture. The midterm was definitely no joke. Supposedly it's designed to be finished within 2 hours, I finished with 1 hr. left out of the 12 allotted.

This is very good computer science theory and I'm learning a lot about Python. It's obviously is not focused on using Python with a 3D package though. Where's a good starting point with using Python in LightWave. I'd like to start practicing that along with the course while all of this is still fresh in my head.

stevenpalomino
11-04-2012, 09:16 PM
whoa whoa!!! Never saw this thread! I just started doing the online academy and saw this! I'm totally jumping in and catching up! What's the skype hangout spot? ;)

stevenpalomino
11-04-2012, 09:20 PM
I think it would be so cool to have more experienced plug-in developers come by and help us out in how all this translates to Lightwave. We could totally start a community developers group and literally help lightwave grow. We'd be like the only package that has that! Maybe I'm just thinking big.. but I think that'd be so awesome... I just realized.. I feel like recently my dreams are getting nerdier and nerdier hahaha

probiner
11-04-2012, 10:21 PM
Damn that mid term was hard... The fact I let this hang the past 2 weeks just slapped me in the face. I manage to do it. But it's not about grades right? It's about knowing it and integrating.

@Wyatt your name is still in the skype room. We need all the ppl we can :)


I read an article today that stated that only 4% of folks actually complete these courses. I have historically been in the top 6%. So I'm screwed! lol
Given that 4% doesn't exactly mean the best of those that were there in the starting line, it does relate a lot with the time you can allocate to the course beyond your daily job. So probably many of those are more resistant than brilliant.

Cheers

JCG
11-04-2012, 11:32 PM
I'm so glad that the next exercises are not for today. I don't think I'd be able to get back on the horse so soon after that mid term.

wyattharris
11-05-2012, 10:24 AM
@Wyatt your name is still in the skype room. We need all the ppl we can :)


Given that 4% doesn't exactly mean the best of those that were there in the starting line, it does relate a lot with the time you can allocate to the course beyond your daily job. So probably many of those are more resistant than brilliant.
Sorry, I'll see about getting on. I never think about it when I'm actually studying.

Well so far in the "CGTalk" group we started with about 6 people, 2 of us finished the midterm, 2 are going to continue but not take it seriously just doing the exercises, 1 decided he had enough school going on already and the last... I have no idea. He doesn't talk about it at all so I assume he quit. Me and Kirt from CGTalk are still going strong though so I think we'll keep each other motivated.

RebelHill
11-06-2012, 02:01 AM
Yup... lots of quitters.

wyattharris
11-12-2012, 10:24 AM
This is very good computer science theory and I'm learning a lot about Python. It's obviously is not focused on using Python with a 3D package though. Where's a good starting point with using Python in LightWave. I'd like to start practicing that along with the course while all of this is still fresh in my head.
So can anyone suggest anything? Now would be a very good time to expand LW Python knowledge. Maybe one of the devs.

RebelHill
11-12-2012, 10:35 AM
Check out big hache's vids on YT (search out lwpy)... maybe drop beevee a love note, ask about the most upto date lw python docs.

wyattharris
11-12-2012, 10:52 AM
Got it, http://youtu.be/9NPWg2sQ4xI. Also there is this thread in the Python section Naive user experience/ disappointments (http://forums.newtek.com/showthread.php?130501-Naive-user-experience-disappointments) and judging by the date must have something to do with this course.

Thanks RH!

BigHache
11-12-2012, 09:15 PM
Also check out the LWPy Wiki (http://www.lawson3d.com/lwpywiki/). It's humble but growing.

adk
11-12-2012, 11:16 PM
Yup... lots of quitters.

I've had some major stuff land on my plate so unfortunately had to forgo the mid-term. I hope I can still keep going with the course, albeit at my own pace. It's more about what I learn now.
Cheers for all the extra added info !

wyattharris
11-13-2012, 09:52 AM
Also check out the LWPy Wiki. It's humble but growing.
Yep, that's how I found the videos. Thanks for setting all of that up. Should be most helpful.


Well so far in the "CGTalk" group we started with about 6 people, 2 of us finished the midterm, 2 are going to continue but not take it seriously just doing the exercises, 1 decided he had enough school going on already and the last... I have no idea. He doesn't talk about it at all so I assume he quit. Me and Kirt from CGTalk are still going strong though so I think we'll keep each other motivated.
And then there was 1. 8/
Guess I'll start getting on the Skype group more or I'll have no one to bounce idea off of.

RebelHill
11-13-2012, 09:55 AM
Yes... its been just me and dan in the skype group recently... gets in there.

BigHache
11-13-2012, 02:40 PM
Yep, that's how I found the videos. Thanks for setting all of that up. Should be most helpful.

Cool. Let me know what you think. At this point I have no idea if it's awesome or if I've been wasting my time.



I've had some major stuff land on my plate so unfortunately had to forgo the mid-term. I hope I can still keep going with the course, albeit at my own pace. It's more about what I learn now.
Cheers for all the extra added info !

Yup life came up and punched me in the face. I'm still recovering.

Netvudu
11-14-2012, 03:13 AM
I had to devote more time to ANOTHER python course so I couldn´t finally keep on this one, but as long as I´m still reinforcing my Python knowledge I feel fine. I might still get back to this course when I have some time.

Also, as soon as I end the course I plan to devote some time to LW´s Python implementation and see how I can use it. In this regard, I would like to thank BigHache the time he´s taking for the rest of us having an easier time afterwards.