Python Source Code of Nodes

   2021   3   0
User Avatar
Member
8 posts
Joined: Oct. 2015
Offline
Hi

I am back at developing for Houdini after a quiet while and trying to pick things back up. Oh my, I forgot a lot!

For instance, I was using an interesting python function in Houdini which lets you to see how a specific node can be created using Python. It was quiet helpful but I did not made a note of it and now I can neither remember nor find it back in the documentation.

Can someone help me towards the right direction?

Thanks in advance!
Edited by rngn - Dec. 3, 2019 08:54:14
User Avatar
Member
1904 posts
Joined: Nov. 2006
Offline
I believe you're looking for hou.Node.asCode()
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
and you may want to add hou.Node.asCode(brief=True) to cut down on the un-needed code produced
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
8 posts
Joined: Oct. 2015
Offline
Yes, that's it!

Thanks a lot to both of you!
  • Quick Links