Jump to content

getting at "vm_surface" details in H9 vs. H8

Recommended Posts

hello all

i am working on the cmivfx procedural cities tutorial in H9 and have run into a snag. the issue is in regards to assigning shaders randomly by modifying the "vm_surface" parameter in the geometry spreadsheet. in H8 there was a "vm_surface" parameter that listed out all the details of the shader. in H9 this field is called "shop_vm_surface" and only lists the path to the assigned shader. i am assuming that i need to do something different to see the shader definition string so i can modify it via an attribute string edit SOP. any assistance would be greatly appreciated !

++ scott

Link to comment
Share on other sites

Look at the Material SOP. It adds the two appropriate attributes which indeed has changed from H8.

The first is string "shop_materialpath" and you point this at either a SHOP subnet "Material" or at any SHOP Displacement or Surface shader. Best to point it at a Material SHOP subnet containing your Surface, Displacement, Property and any Procedural SHOPs. It is just a path to your Material.

The second attribute string "material_override" is for overriding the specific material parameters. Turning on the option "Overrides use local variables" toggle in the Material SOP adds this attribute.

This second attribute is very different from H8. "material_override" is formatted as a Python dictionary:

{token1:'string1', token2:'string2'}

where token is the name of the parameter and string is the parameter value.

Actual example:


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.

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...