Place-Linked-Bitmap icon indicating copy to clipboard operation
Place-Linked-Bitmap copied to clipboard

Dynamic paths when using Dropbox?

Open aronvandervalk opened this issue 7 years ago • 5 comments

We work in a team. All our assets and work files are in a shared Dropbox. We have installed the place bitmap plugin on both machines, but because the linked paths are absolute to the machine and not relative to the Dropbox, updating existing linked files will not work on machines other than the one that has placed it.

Is there a way to make this dynamic? Illustrator and Photoshop for instance also work with placed files and they allow dynamic paths.

aronvandervalk avatar Mar 08 '17 14:03 aronvandervalk

I’ve never been happy with how the plugin handles relative paths (which is to say, it doesn’t if the linked file is outside the directory that contains the Sketch file).

I’ll see what I can do.

frankko avatar Mar 09 '17 18:03 frankko

Similarly, I work on active projects in Dropbox, but then upload it to our team file server for backups. It would be great if the paths were relative so that if a team member needs to update screens in the future, it will work. I currently store the assets in a subfolder in the same folder as the main Sketch file, and it updates in one location but not the other.

chloester avatar May 24 '17 16:05 chloester

@chloester if you have a structure similar to the following:

project/
    design.sketch
    assets/
        bitmap1.png
        bitmap2.psd
        …

the plugin should work. Every time a bitmap is placed, the path of the bitmap is compared against the path of the .sketch file, and if they’re the same, or if the bitmap is “below”, the plugin only saves a relative path. It shouldn’t matter where the overall project/ folder is, as long as the .sketch and assets/ folder are “siblings”, you should be good.

But if your teammates aren’t storing the bitmaps in an assets subfolder like you are, the plugin won’t be able to find the original. If that’s what’s going on, I’m not sure how I can solve that problem on my end. I don’t think the plugin should scan someone’s drive for any file called bitmap1.png and assume, if it finds one, that it’s the file you want.

Something that might be helpful in a situation like this, which I’ll try to add, is a way to see the path that’s stored. That way you’d be able to see if the path that was saved by the plugin was indeed a relative path. And the person on the other end could potentially use that to verify they have all their files in the right place.

And relinking files, that’s been on my list for a while. I should start on that.

frankko avatar May 24 '17 19:05 frankko

And relinking files, that’s been on my list for a while. I should start on that.

I constantly change the structure of my assets folder as the project grows. Relinking files would be a really great feature.

boyankostov avatar Feb 22 '19 09:02 boyankostov

What about using a symbolic link?

24tracks avatar Feb 28 '19 23:02 24tracks