How To use relative paths

FAQ Content Creation Content Sharing Composer

 

Can we use relative paths to load objects to aximmetry?

   ahmed ahmed

 
Profile Image
Aximmetry
7/17/2019 9:13:12 PM
  -  

You cannot.  You have to use project-relative paths.

If you need to transfer the referred file to another place,  you can do it using the Dependency Manager panel's  Relocate function.

Or if the files are already moved by an external tool  you can use the Replace Path function of the Dependency Manager  (on multiple files at once as well).

 
Profile Image
ahmed ahmed
7/18/2019 5:43:24 AM
  -  

So how to use use project-relative paths?

 
Profile Image
ahmed ahmed
7/19/2019 1:48:38 PM
  -  

And can't simple use the following ./ to make the software understand that is this the root of project folder

 
Profile Image
Aximmetry
7/19/2019 2:20:33 PM
  -  

There is no "current" project strictly saying. Editor will highlight the project that contains the currently active xcomp, but you can mix files from different projects. (although we don't recommend it, except the "Common" project)
But using project relative path is super easy.
Here is an example:
[MyProject]:textures\a.jpg

This is the root of a project:
[MyProject]:

When you are insert a file that is under a project the path will automatically project relative.
So in most cases you don't have to bother with it, everything will automatically behave correctly.