question

Andrew Wilkins avatar image
Andrew Wilkins asked

HtoA - Export / Import Material

Hi,

In a simple test scene I'm trying to use the "Arnold > Material > Export & Import"

hou-menu-items-01-2.jpg


I noticed you need to be in the matnet & select all the "arnold material builders" when exporting to ASS.

htoa-materials-01.jpg


Which works as intended ie. all three shaders are stored—just showing the one.

standard_surface
{
 name /obj/matnet1/red_shader/ss_red
 base_color 1 0 0
 specular_color 1 1 1
 transmission_color 1 1 1
 transmission_scatter 0 0 0
 subsurface_color 1 1 1
 subsurface_radius 1 1 1
 sheen_color 1 1 1
 normal 0 0 0
 tangent 0 0 0
 coat_color 1 1 1
 coat_normal 0 0 0
 emission_color 1 1 1
 opacity 1 1 1
 id1 0 0 0
 id2 0 0 0
 id3 0 0 0
 id4 0 0 0
 id5 0 0 0
 id6 0 0 0
 id7 0 0 0
 id8 0 0 0
 declare material_surface constant STRING
 material_surface "/obj/matnet1/red_shader"
}


When importing however I get the error:

htoa-materials-02-error.jpg

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:/_APPS/htoa/htoa-5.6.0.0_r370661f_houdini-18.5.462/htoa-5.6.0.0_r370661f_houdini-18.5.462/scripts/python\htoa\material.py", line 267, in importMaterials
    materialImport(material_context, filename)
  File "E:/_APPS/htoa/htoa-5.6.0.0_r370661f_houdini-18.5.462/htoa-5.6.0.0_r370661f_houdini-18.5.462/scripts/python\htoa\material.py", line 243, in materialImport
    importer.run()
  File "E:/_APPS/htoa/htoa-5.6.0.0_r370661f_houdini-18.5.462/htoa-5.6.0.0_r370661f_houdini-18.5.462/scripts/python\htoa\material.py", line 424, in run
    surface = self.traverse(material.get('surface'))
  File "E:/_APPS/htoa/htoa-5.6.0.0_r370661f_houdini-18.5.462/htoa-5.6.0.0_r370661f_houdini-18.5.462/scripts/python\htoa\material.py", line 497, in traverse
    pushHouParms(op, vop, '', is_osl)
  File "E:/_APPS/htoa/htoa-5.6.0.0_r370661f_houdini-18.5.462/htoa-5.6.0.0_r370661f_houdini-18.5.462/scripts/python\htoa\node\node.py", line 741, in pushHouParms
    if isMultiBool(node_entry, arnold_name):
NameError: global name 'isMultiBool' is not defined


Any ideas why the shaders aren't being imported?

I can't find any HtoA documentation regarding this process.


Regards,
Andrew


Houdini: 18.5.462
HtoA: 5.6.0.0
Arnold:
6.2.0.0

htoaassmaterials
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Julian Hodgson avatar image
Julian Hodgson answered

Hi there, this was fixed in HtoA 5.6.0.2.

You can import materials via the Arnold | Material top level menu, and export here or with a right click in the material context.

2 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Hey,

Okay thank you. Let me try get onto that version and try again.


Update:
Tested on new version it it worked, thanks again.

0 Likes 0 ·

Hi! It is possible to get relative path for texture? In this moment script export absolute path and ignore $JOB variable and etc


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.