woodenduck Posted November 29, 2012 Share Posted November 29, 2012 Anyone know how I can return the parameters and their values for a given node as a list or text file? For example if it were a transform node it might look like: xform1 tx = 0 ty = 0 tz = 0 scalex = 1 scaley = 1 scalez = 1 etc etc etc Thanks for your help! WD Quote Link to comment Share on other sites More sharing options...
graham Posted November 30, 2012 Share Posted November 30, 2012 You can use Python. node = hou.node("/obj/geo1/xform1") f = open("{0}.txt".format(node.name()), 'w') for parm in node.parms(): f.write("{0} = {1}".format(parm.name(), parm.eval() f.close() Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 30, 2012 Author Share Posted November 30, 2012 Thanks a lot Graham, that's precisely what I was after. Cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.