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

katana relative paths #101

Open
ronnyascencio opened this issue Apr 23, 2024 · 6 comments
Open

katana relative paths #101

ronnyascencio opened this issue Apr 23, 2024 · 6 comments

Comments

@ronnyascencio
Copy link

Is your feature request related to a problem? Please describe.
when import cene or asset to katana turn all paths manually to relative paths is a pain

Describe the solution you'd like
when we import from UI tik maybe we can chose the option to make it relative or not

Describe alternatives you've considered
this could be done adding an expression when the node importomatic or usd in is created because already the project is set is possible to use relative to the project

@masqu3rad3
Copy link
Owner

what is the syntax for relative paths in katana?

@ronnyascencio
Copy link
Author

project.dir + "path relative to the project "

it depens if is a folder stream up or down like an example :

C:/Users/user/projects/kat/assets/3d/shark.abc
project.dir + "/assets/3d/shark.abc"

C:/shared/assets/3d/water_surface.abc
project.dir + "/./../../../shared/assets/3d/water_surface.abc"

@masqu3rad3
Copy link
Owner

sorry I didnt mean that, I know what a relative path means :D
I meant is there a special syntax for that?
I have seen in Gaffer somethins like:
{projectRoot}/SomePath/anotherDir/
Whereas in Maya we just start without a volume label or / and it resolves it against the defined project
like:
sourceimages/somepath.tx

is there a special syntax like that for Katana?

@ronnyascencio
Copy link
Author

well dont think so, i just use that :D as an expresion

@vNicolini
Copy link

@masqu3rad3

sorry I didnt mean that, I know what a relative path means :D I meant is there a special syntax for that? I have seen in Gaffer somethins like: {projectRoot}/SomePath/anotherDir/ Whereas in Maya we just start without a volume label or / and it resolves it against the defined project like: sourceimages/somepath.tx

is there a special syntax like that for Katana?

In Katana the equivalent of Gaffer's {projectRoot] is project.dir, unless i misunderstand your question

@masqu3rad3
Copy link
Owner

@vNicolini yes, that was what I was looking for, thanks for that :)

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

3 participants