Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HtoA - Export / Import Material

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Andrew_Wilkins1
605 Views, 3 Replies

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

Tags (3)
Labels (3)
3 REPLIES 3
Message 2 of 4

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.

Message 3 of 4

Hey,

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


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

Message 4 of 4
Slava_91
in reply to: julian.hodgson

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


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report