Graham Thompson

graham

About Me

Expertise
Technical Director
Location
Canada

z0mg, things!

Connect

Recent Forum Posts

Python Source Code of Nodes May 21, 2019, 9:55 a.m.

I believe you're looking for hou.Node.asCode()

[py] How to change label of a single paramer instance of multiparm block folder? Feb. 20, 2019, 11:33 a.m.

This is definitely not possible I'm afraid. The best you could do would be to use an actual Label type parameter and set that to your desired value and it would remain for the life of that instance.

Pipeline - Serializing nodes Feb. 19, 2019, 2:40 p.m.

camelia
I don't know what's the big difference between calling the same script in the Python Shell and on another place (Tool in Shelf, python node, etc.).

The main difference is that the Python Shell runs in a separate thread where as things like shelf tools, menu entries, etc are run in the main thread. A lot of things definitely can cause weird behavior/crashes when running from the shell (think Qt) so if you're doing something complex it'a always advised to do it via shelf tool or menu item.

We've been successfully using the hou.Node methods for quite a while without running into issues so it could be very specific to what you are attempting to copy.