masqu3rad3 / tik_manager4

Tik Manager is a Python-based Pipeline and Project Management platform designed for VFX and Animation Projects.
GNU General Public License v3.0
95 stars 7 forks source link

katana relative paths #101

Open ronnyascencio opened 7 months ago

ronnyascencio commented 7 months ago

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 commented 7 months ago

what is the syntax for relative paths in katana?

ronnyascencio commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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

vNicolini commented 7 months ago

@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 commented 7 months ago

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