PDA

View Full Version : Introduction to Python for Lightwave



Ryan Roye
05-21-2015, 06:10 PM
https://www.youtube.com/watch?v=6ZyYwjXYG14

Sometimes you run into unique situations that can sap away a ton of your time. I've seen a lot of people come to these forums with very specific problems such as:

- Placing an object, light, or camera onto everything the user has selected
- Applying expressions to hundreds of objects based on certain parameters such as their position, rotation, properties, etc
- Applying scene-wide changes
- Toggling between scene setting presets
- etc

It's stuff like this which makes knowledge of scripting important. I've taken everything i've learned over the past year regarding Python and have condensed it into this concise learning material. Enjoy.

More details can be found here (http://www.liberty3d.com/2015/05/intro-to-python-for-lightwave/)

ernpchan
05-21-2015, 06:24 PM
Very cool.

So does this go into how to read the python documentation?

Ryan Roye
05-21-2015, 07:19 PM
So does this go into how to read the python documentation?

Yes. I describe the patterns and mindset behind a large majority of the documentation provided. The parts I do not cover will be touched on in more in depth publications, assuming there is interest of course. Almost everything listed here (http://static.lightwave3d.com/sdk/2015/python/globals.html) is what users can expect to gain access to in terms of functions they can take advantage of.

Since this is an introductory course, I'm solely focused on executable scripts. Things like constructing user interfaces, making custom motion modifiers, applying gizmos and "modes" to plugins belong in content geared towards more advanced scripting topics.

ernpchan
05-21-2015, 08:18 PM
Nice! I may have to pick this up.

chikega
05-22-2015, 12:07 PM
Very nice! I've always wanted to get into Python in LW :)

wesleycorgi
05-22-2015, 02:31 PM
Thanks — I'm a wannabe programmer/scripter (published my first iOS app this year) and wannabe 3D artist — so this is right up my alley!

willin
05-22-2015, 08:55 PM
Yes. I describe the patterns and mindset behind a large majority of the documentation provided. The parts I do not cover will be touched on in more in depth publications, assuming there is interest of course. Almost everything listed here (http://static.lightwave3d.com/sdk/2015/python/globals.html) is what users can expect to gain access to in terms of functions they can take advantage of.

Since this is an introductory course, I'm solely focused on executable scripts. Things like constructing user interfaces, making custom motion modifiers, applying gizmos and "modes" to plugins belong in content geared towards more advanced scripting topics.

OK, I'm ready to move on to Part 2 - User Interfaces on Monday and Part 3 - Motion Modifiers the following Monday.

hrgiger
05-23-2015, 10:44 AM
Good stuff ryan, going to pick it up soon.

Edit: And ordered and downloading.

chikega
05-25-2015, 09:47 PM
I'm going to wait for the July 4th sale :)