Isotropix Forums

Relative paths

General Discussion about Isotropix and CG related topics

Relative paths

Unread postby fmonster » Tue Nov 23, 2021 6:01 pm

Hello,

I saw there was a way with the variable PDIR to tell clarisse to find elements in the projectFolder(PDIR)/anotherFolder/.
But is there a way to tell clarisse to "come up/back" one or two folders ?

For example :
--SHOTfolder
----clarisseFolder
--------projectsFolder
--------assetFolder
--------texturesFolder

As the projects files will be in the -ProjectsFolder, is there a way to tell clarisse to come back to the level of -ClarisseFolder, then to go to the others folders ?
I remember seeing something like this inside Clarisse a long time ago. With a group, to tell him to go back from one folder or two, with a specific syntax (dots and slash)

Thank you !
fmonster
 
Posts: 4
Joined: Mon Nov 01, 2021 12:50 pm

Re: Relative paths

Unread postby anemoff » Tue Nov 23, 2021 6:56 pm

Hi,

Of course. You can use "../" one or more times to go up one or more levels.
In your case, assuming PDIR=projectsFolder:
- to go to assetFolder: "$PDIR/../assetFolder/"
- to go to SHOTfolder: "$PDIR/../../SHOTfolder"
As simple as that.

This same syntax also works for item paths within a project.
Anthony Nemoff
Isotropix
R&D Engineer
User avatar
anemoff
 
Posts: 422
Joined: Wed Jan 13, 2016 10:10 am

Re: Relative paths

Unread postby fmonster » Wed Nov 24, 2021 7:02 pm

Ah yes it's exactly that I was looking for ! Thank you for this, I tried to find this info by searching previous notes, impossible to get it back.
Thanks again !
fmonster
 
Posts: 4
Joined: Mon Nov 01, 2021 12:50 pm


Return to General Discussion
cron