Announcement

Collapse
No announcement yet.

Export from Maya to Blender with Textures?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Export from Maya to Blender with Textures?

    Hey everyone,

    I have a file in Maya with VRAY materials. I'm trying to export it to Blender. I've tried .obj, .fbx, and .dae. When I use these, material properties like roughness and spec come through, but none of the materials created in Blender have any textures. Does anyone know if there's a way to make this work, or some other format that will work? Is there a proper way to transfer a scene?

  • #2
    There is an option to import .vrmat and .vrscene material in V-Ray for Blender but we have found there is an issue with it if materials are exported from latest V-Ray version for Maya.
    We'll have a look a that, meanwhile you may try and see if it works for you or not.

    To export materials in .vrmat / .vrscene format from Maya you need to:
    1. Enable Exrpot to .vrscene file option here:
      Click image for larger version

Name:	maya_2019-08-16_15-53-45.jpg
Views:	3901
Size:	67.3 KB
ID:	1045759
    2. Use VRMat Converter from Create>V-Ray menu:
      Click image for larger version

Name:	maya_2019-08-16_15-55-44.jpg
Views:	3695
Size:	142.3 KB
ID:	1045760

    To import material in V-Ray for Blender you need to select VRay: Import Materials option from File > Import menu
    Click image for larger version

Name:	blender_2019-08-16_15-57-46.jpg
Views:	3806
Size:	112.2 KB
ID:	1045761
    Svetlozar Draganov | Senior Manager 3D Support | contact us
    Chaos & Enscape & Cylindo are now one!

    Comment


    • #3
      Thank you for the response! I have tried this and run into a couple of errors:

      First, when doing the VRmat Converter, I am getting the following error:

      # Error: file: E:/Program Files/Autodesk/Maya2019/vray/scripts/vrayVRmatConverter.mel line 212: NameError: file E:\Program Files\Autodesk\Maya2019\vray\scripts\vrmatConverte r.py line 740: global name 'sqrt' is not defined


      If the converter is set to Export in one vrmat, then it exports the textures to the target folder, but does not create any .vrmat files.
      If it is not, then it does create a folder with a .vrmat and associated textures for each material.

      However,w hen I attempt to import these into VR blender, I get this error and nothing imports:

      Traceback (most recent call last):
      File "E:\Program Files\Chaos Group\Blender 2.79 (With V-Ray Additions)\2.79\scripts\addons\vb30\nodes\operator s\import_file.py", line 295, in execute
      return ImportMaterials(context, self.filepath, self.base_material, self.use_fake_user)
      File "E:\Program Files\Chaos Group\Blender 2.79 (With V-Ray Additions)\2.79\scripts\addons\vb30\nodes\operator s\import_file.py", line 209, in ImportMaterials
      maNode = NodesImport.createNode(ntree, outputNode, vrsceneDict, pluginDesc)
      File "E:\Program Files\Chaos Group\Blender 2.79 (With V-Ray Additions)\2.79\scripts\addons\vb30\nodes\importin g.py", line 664, in createNode
      connectedNode = createNode(ntree, n, vrsceneDict, connectedPlugin)
      File "E:\Program Files\Chaos Group\Blender 2.79 (With V-Ray Additions)\2.79\scripts\addons\vb30\nodes\importin g.py", line 664, in createNode
      connectedNode = createNode(ntree, n, vrsceneDict, connectedPlugin)
      File "E:\Program Files\Chaos Group\Blender 2.79 (With V-Ray Additions)\2.79\scripts\addons\vb30\nodes\importin g.py", line 666, in createNode
      ntree.links.new(connectedNode.outputs[inPluginOutputSocketName], n.inputs[attrSocketName])
      KeyError: 'bpy_prop_collection[key]: key "Alpha Mult" not found'

      location: <unknown location>:-1




      Please let me know if there's anything else I can try!

      Comment


      • #4
        Another issue: It seems that when exporting as separate materials, not all the materials export. My file has 88 materials, but only 48 are exporting. I can't identify any reason why. I can individually export materials that did not export when I had all of them selected.

        Comment

        Working...
        X