nicoladanese Posted July 8, 2019 Share Posted July 8, 2019 Hey! I'm working on some material stylesheet for crowd, and I'm wondering if there's a way to export those rules to a separate file, so I can import it in different lighting scenes cheers! Quote Link to comment Share on other sites More sharing options...
garf Posted July 8, 2019 Share Posted July 8, 2019 In the Data Tree right-click on the stylesheet and select view JSON. You can view and save the stylesheet from there. Quote Link to comment Share on other sites More sharing options...
nicoladanese Posted July 9, 2019 Author Share Posted July 9, 2019 Hey, thanks for your reply, I'm using 16.5 and it doesn't seem to work, I can't find the "view JSON" option... Quote Link to comment Share on other sites More sharing options...
kiryha Posted July 9, 2019 Share Posted July 9, 2019 (edited) You can copy-paste text from the "Shaders" tab, its a stylesheets JSON data. # Select Geometry node with a stylesheet and run the script import hou import json geo = hou.selectedNodes()[0] stylesheet_data = geo.parm('shop_materialstylesheet').eval() dataFile = 'C:/temp/stylesheet.json' json.dump(stylesheet_data, open(dataFile, 'w'), indent = 4) Edited July 9, 2019 by kiryha Quote Link to comment Share on other sites More sharing options...
nicoladanese Posted July 10, 2019 Author Share Posted July 10, 2019 thanks! didn't notice it! 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.