{"id":13734454,"url":"https://github.com/virokannas/ptc2usd","last_synced_at":"2025-05-08T10:31:49.321Z","repository":{"id":201683681,"uuid":"285149788","full_name":"virokannas/ptc2usd","owner":"virokannas","description":"Convert ptc files to usd files.","archived":false,"fork":false,"pushed_at":"2021-01-04T06:41:58.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T03:17:11.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/virokannas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-05T01:53:30.000Z","updated_at":"2022-01-26T11:48:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f8d0b5e-8d96-46f9-8f40-bd256d94f701","html_url":"https://github.com/virokannas/ptc2usd","commit_stats":null,"previous_names":["simpassi/ptc2usd","virokannas/ptc2usd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virokannas%2Fptc2usd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virokannas%2Fptc2usd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virokannas%2Fptc2usd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virokannas%2Fptc2usd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virokannas","download_url":"https://codeload.github.com/virokannas/ptc2usd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045773,"owners_count":21845772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:56.017Z","updated_at":"2025-05-08T10:31:49.005Z","avatar_url":"https://github.com/virokannas.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# ptc2usd\nConverts point cloud files to usd files.\n\n## 2D ASCII-Graphical representation of what's happening\n```\n     .                         .\n  ....    .       -\u003e        ....    .\n        .                         .\n```\n\n\n## Usage:\n\n```\npython ptc2usd.py \u003cin_file.(ptc|json)\u003e \u003cout_file.usd[a]\u003e\n```\n\n(out_file can also be -, in which case there will be an usda output to stdout)\n\nThe script supports two formats:\n* Pixar's PTC\n* Houdini JSON point output\n\nPlease note that you need to have [Pixar's USD](https://github.com/pixarAnimationStudios/USD) and its python modules in PATH and PYTHONPATH, respectively.\n\nIf running against PTC files, the script will try to locate a RenderManProServer installation and use the prman library there. If your installation location is unusual, use the LD_LIBRARY_PATH or DYLD_LIBRARY_PATH environment variable to include that location. Also, if one is already specified, no locating will be done.\n\nIf you need to run this on a different platform (the current binaries are for MacOS 10.15 and CentOS 7), just compile the pt.c into a matching file under bin/. The name is created using sys.platform: ```\"{}_pt\".format(sys.platform)``` so depending on your Linux distribution and python version it may be linux_pt or linux2_pt.\n\nTo compile, just supply your desired C compiler with the library / include paths and libraries to link with, examples:\n```shell\n# CentOS 7\ngcc -o bin/linux_pt -I/opt/pixar/RenderManProServer-23.2/include -std=c99 -L/opt/pixar/RenderManProServer-23.2/lib -lprman -lpxrcore pt.c\n\n# MacOS 10.15 (note that clang doesn't need the -std=c99 flag by default)\ngcc -o bin/darwin_pt -I/Applications/Pixar/RendermanProServer-23.2/include -L/Applications/Pixar/RendermanProServer-23.2/lib -lprman -lpxrcore pt.c\n```\n\n## Why?\n\nSince no one asked this, I feel obligated to answer; just because.\n\nPTC is an old format and mainly used with RenderMan (since it's originally a Pixar in-house format) but I'm sure there's a lot of legacy stuff still out there. My hope is that small tools like this will help in the transition to USD.\n\nModern tools, pretty much all of them, already can export point objects as USD.\n\n## Roadmap:\n\n* Include attributes (color, size, custom data)\n* Support turning per-frame ptc files into time slices\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirokannas%2Fptc2usd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirokannas%2Fptc2usd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirokannas%2Fptc2usd/lists"}