SpencerL Posted November 23, 2008 Share Posted November 23, 2008 (edited) Hi, Im not sure how to strip down what is outputed. Currently I have this python code: renderType = hou.node('/out/mantra1').type() And it returns: <hou.NodeType for Driver ifd> I have also tried renderType = hou.hscript('optype -t /out/mantra1) And it returns: ('ifd\n', '') All I want is "ifd" for the output. Any suggestions on how to strip that down? Thanks Edited November 23, 2008 by SpencerL Quote Link to comment Share on other sites More sharing options...
graham Posted November 23, 2008 Share Posted November 23, 2008 renderType = hou.node('/out/mantra1').type().name() Quote Link to comment Share on other sites More sharing options...
SpencerL Posted November 24, 2008 Author Share Posted November 24, 2008 renderType = hou.node('/out/mantra1').type().name() Thanks! 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.