PDA

View Full Version : Any examples out there of the usage of the Python Node?



probiner
09-17-2014, 03:52 PM
http://i.imgur.com/ohQkNte.png

Select python node from the list, double click, asks for a file.

I find this interesting as it could also mean I can reference and update the node. Just versioning the .txt in case something goes wrong.

Couldn't find any examples though. So really don't know where to start.

Cheers

jeric_synergy
09-17-2014, 07:47 PM
posting to subscribe

I've seen that lil' fella, and wondered "WTH?". Nothing obvious in any of the native directories? LW3dG should post at least one example, don't you think?

Jen Hachigian is probably the person to hound on this: any LALWUG members on here? Let the nagging commence!

PROBINER: shouldn't this be in the Python scripting forum?

Sensei
09-18-2014, 02:04 AM
scripts\Python\Layout\Shader\specular_node.py does not work?

Click anything, or Update, after picking it.

probiner
09-18-2014, 02:59 AM
Thanks Sensei!
I get crashes though with specular_node.py

F9: http://prntscr.com/4nx3n7
VPR: http://prntscr.com/4nx4hp

blotchy.py
just doesn't load: http://prntscr.com/4nx4sb

You guys too?

Noticed it doesn't have a UI.

Cheers

Sensei
09-18-2014, 03:10 AM
Yes, the same. Although I have older version..

In source code there is:

"
# LWNode ----------------------------------------------
def flags(self):
# Python fails epically at threaded evaluation
return lwsdk.NF_SINGLE_THREADED
"

After setting 1 Thread in Globals, it renders slowly but didn't crash..

I thought so this flag is to inform LW renderer to use just one thread.. Apparently it's screwed/ignored...

jeric_synergy
09-18-2014, 09:25 AM
Obvious fogbugz material. Since these are so obscure, likely they haven't been tried in quite a while.