Symlink versioning

   2105   4   1
User Avatar
Member
3 posts
Joined: Sept. 2015
Offline
Hi!

I have a qussation about Symlink and I need some help

How can I make Symlink pick up the last version in like this example?
A modeler publish
chair_geo_v01.usd,
chair_geo_v02.usd,
the publish code creates chair_geo.usd, a symlink to the latest version.

How I can do this in Houdini ??

Thanks
Salah
User Avatar
Member
332 posts
Joined: Nov. 2013
Offline
If you are using python to drive your publishing mechanism checkout os.symlink [docs.python.org]

Or from a more traditional (linux) shell script there's the ln -s [www.unix.com] command.

Whether or not you call the above from Houdini or some external mechanism is a matter of choice, but it's certainly possible to run as part of a rop/top network if that's what you're using.
User Avatar
Member
3 posts
Joined: Sept. 2015
Offline
Thank you

Do you have a simple example of how this work ??
User Avatar
Member
332 posts
Joined: Nov. 2013
Offline
Assuming you just want the link in the same directory, and the current working directory is the directory where the files are located something like:

import os
src = 'chair_geo_v02.usd,'
dst = 'chair_geo.usd'
os.symlink(src, dst)
User Avatar
Member
25 posts
Joined: April 2020
Offline
antc
Assuming you just want the link in the same directory, and the current working directory is the directory where the files are located something like:

import os
src = 'chair_geo_v02.usd,'
dst = 'chair_geo.usd'
os.symlink(src, dst)
how to read back? I use reference it error:no layer
  • Quick Links