There are a few ways to do this:
- Packages and package management
The main issue here is that if you are working on IP related code or just generally don't want to publish your nodes to the world, there will always be some left over 'private' custom nodes in your definitions folder that you still may want to sync with other pcs, leaving us with...
- Shared cloud definition folder with live update to local definitions folder
Let's say we have a few workstations and we want to share Dynamo definitions between them:
- Set up a shared cloud folder called LiveDefinitions between users of these pcs (Google Drive or Dropbox or similar).
- Then, set up a sync process that mirrors that cloud version to your local Dynamo definitions folder, in my case:
The RealTimeSync can be set up as follows:
- Launch FreeFileSync and create a Mirror sync between these folders (that's in the image above)
- Save this as a ffs_batch file
- Open that file in RealTimeSync
- Save as a ffs_real file
- Right-click and Copy this ffs_real file in Windows Explorer
- Paste shortcut into your Windows Startup folder, such as:
- Double click the shortcut in Startup and check that it runs ok. It should automatically place a red RealTimeSync icon in your task bar that polls the source folder periodically for changes. If you ever want to stop the sync, just right-click on that red icon to stop the sync running. To disable automatic startup, just delete the shortcut from the startup menu.
C:\Users\Luke\Google Drive\VirtualBuilt (LJ only)\Dynamo\wip\LiveDefinitions
Even if I just right-click and edit a custom node in Dynamo, I will have to go Save As to the above folder to make this system work.
Google Drive will sync that file up, and then RealTimeSync will push it into the required Dynamo folder.
This way, the point of truth for all of your custom definitions is in the cloud, and these are downloaded and overwritten into your local Dynamo definitions folder (the one that Dynamo uses).
Use this idea with care :-) As always make a backup of everything first, and also remember that often simply closing and re-opening Dynamo can help to refresh the dependencies and correct some problems.