Transform "source" path from absolute to relative?

If you need help on how to use the program
Post Reply
rs232
Posts: 107
Joined: 2012-05-09 21:57:22

Transform "source" path from absolute to relative?

Post by rs232 »

Is there any equivalent to "tools/manage pictures/transform absolute path into relative paths" when it comes to sources instead?

Equally, I don't see any option when importing media to store relative source paths when it comes to the source field. For pictures it works very well instead!

Unless this is already available and it's me that I can't find it, perhaps this is a good idea for improvement?

Thanks!
rs232
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

You can do this with a little script easily.

Maybe I could complete UPDATE_FIELDS script to add this operations
by selecting the field that contains file path (e.g. Source, URL, FilePath, URL of extras, ...):
- Transform absolute link to relative link
- Transform relative link to absolute link

I should add the possibility to use relative path instead of absolute path during import of movies too.
Maybe I will add this in next minor version 4.2.1.

Soulsnake.
rs232
Posts: 107
Joined: 2012-05-09 21:57:22

Post by rs232 »

Thanks, you made my day :)
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

Hi rs232,

I update the script UpdateFields here:
http://mickaelvanneufville.online.fr/AMCU/scripts/
Copy it in your AMC script folder to use it.

You will see 2 more actions to transform paths:
- Transformer les chemins absolus en chemins relatifs (Transform absolute paths into relative paths)
- Transformer les chemins relatifs en chemins absolus (Transform relative paths into absolute paths)
Soulsnake.
rs232
Posts: 107
Joined: 2012-05-09 21:57:22

Post by rs232 »

Great! I've installed the script but not tried it yet, will do tonight!

A function available from the drop down menu (for simplicity) would be the perfect place where to put this ;-)

Thanks a lot I really appreciated!
Post Reply