Jump to content

how to export material stylesheet


Recommended Posts

You can copy-paste text from the "Shaders" tab, its a stylesheets JSON data.

stylesheet.PNG.ef2c78a36d49bf271745603a3bf2cc0a.PNG

 

# 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 by kiryha
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...