Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path must be an absolute path:<> #186

Open
hellovarun opened this issue Jul 19, 2020 · 0 comments
Open

Path must be an absolute path:<> #186

hellovarun opened this issue Jul 19, 2020 · 0 comments

Comments

@hellovarun
Copy link

Hello, I was trying to convert gltf2usdz and stuck here any workaround for this or i"m missing something?

I have given the absolute path despite that this error.

this is was the command used to run the script.

python gltf2usd.py -g /Users/varunsaini/Desktop/usd-sdk/gltf2usd-master/Source/tests/assets/Start_Walking/Start_Walking.gltf -o /Users/varunsaini/Desktop/gltf2usdz/usdz/test.usdz
and the output after that

Warning: in SdfPath at line 97 of /Users/varunsaini/Desktop/fbx-sdk/USD-master/pxr/usd/sdf/path.cpp -- Ill-formed SdfPath </root/b'RootNode'_0>: syntax error
Traceback (most recent call last):
  File "gltf2usd.py", line 925, in <module>
    convert_to_usd(os.path.expanduser(args.gltf_file), os.path.abspath(os.path.expanduser(args.usd_file)), args.fps, args.scale, args.arkit, args.verbose, args.use_euler_rotation, args.optimize_textures, args.generate_texture_transform_texture, args.scale_texture)
  File "gltf2usd.py", line 834, in convert_to_usd
    usd = GLTF2USD(gltf_file=gltf_file, usd_file=temp_usd_file, fps=fps, scale=scale, verbose=verbose, use_euler_rotation=use_euler_rotation, optimize_textures=optimize_textures, generate_texture_transform_texture=generate_texture_transform_texture, scale_texture=scale_texture)
  File "gltf2usd.py", line 76, in __init__
    self.convert()
  File "gltf2usd.py", line 803, in convert
    self.convert_nodes_to_xform()
  File "gltf2usd.py", line 92, in convert_nodes_to_xform
    self._convert_node_to_xform(node, parent_transform)
  File "gltf2usd.py", line 104, in _convert_node_to_xform
    xformPrim = UsdGeom.Xform.Define(self.stage, '{0}/{1}'.format(usd_xform.GetPath(), GLTF2USDUtils.convert_to_usd_friendly_node_name(node.name)))
pxr.Tf.ErrorException: 
	Error in 'pxrInternal_v0_20__pxrReserved__::UsdStage::_IsValidPathForCreatingPrim' at line 3127 in file /Users/varunsaini/Desktop/fbx-sdk/USD-master/pxr/usd/usd/stage.cpp : 'Path must be an absolute path: <>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant