## [Update] EyeonLegacy -- Added Change_Paths [SUBMITTED]

Moderator: SecondMan

Midgardsormr
Fusionator
Posts: 1057
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### [Update] EyeonLegacy -- Added Change_Paths

Change_Paths performs a search-and-replace operation on the File field in Loaders, Savers, and/or Proxies.

Untitled.png (12.6 KiB) Viewed 201 times

This script is added to the EyeonLegacy package, having been updated for Fusion9.

Changelog:

Code: Select all

Atom {
Name = "Eyeon Legacy Scripts",
Category = "Scripts",
Author = "Eyeon",
Version = 1.1,
Date = {2018, 2, 7},
Description = [[Adds Fusion 9 updated versions of the classic Eyeon Fusion v6.4 - v7 era legacy Lua scripts.]],
Deploy = {
"Scripts/Comp/EyeonLegacy/Archive Composition.lua",
"Scripts/Comp/EyeonLegacy/Change Paths.lua",
"Scripts/Comp/EyeonLegacy/Create Bin From Directory.lua",
"Scripts/Comp/EyeonLegacy/HighLight Animated.lua",
"Scripts/Comp/EyeonLegacy/Switch Motion Blur.lua",
"Scripts/Comp/EyeonLegacy/Tool Trippin'.lua",
"Scripts/Tool/EyeonLegacy/Attach Mask - XF - Stroke to Path - Keep Position TOOL.lua",
"Scripts/Tool/EyeonLegacy/Bake Animation.lua",
"Scripts/Tool/EyeonLegacy/Destabilize Transform.lua",
"Scripts/Tool/EyeonLegacy/Export Animation to AfterEffects.lua",
},
}

Atom directory:
com.wesuckless.EyeonLegacy.zip
Last edited by Midgardsormr on Wed Feb 07, 2018 9:34 pm, edited 2 times in total.

SecondMan
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

Thanks Bryan!

One little bug came up when I was testing - the "Remember options for next time" parameter doesn't seem to do anything... ?

(and one OCD thing for me please - would you mind terribly if I asked you to remove the underscore in the script name? None of the other scripts follow that convention...)

Midgardsormr
Fusionator
Posts: 1057
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths  [SUBMITTED]

Done! Fixed the preferences bug and removed the underscore from the file name. Updated the zip file in place.

There could be some refinement done—I'm not sure why the original script saves the paths when the Remember box is checked, nor why it refuses to update the prefs if no paths are provided. If someone wants to correct those deficiencies, they're welcome to. I don't have the time at the moment.

SecondMan
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

It just remembers everything, including the paths. And when you clear the paths there's some error handling because it wouldn't know what to do with an empty search pattern. Same with replace pattern (although you could use that to delete something in the path - but that could also be risky at the same time).

When no path is provided the script exits before it can save the input in fusion:SetData.

Good points, but because this is exactly how the legacy script worked, I see no reason not to release it as is.

Midgardsormr
Fusionator
Posts: 1057
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

I know what causes it. I'm just not sure why it was designed that way.

SecondMan
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

Ohhh - sorry, I did wonder why you couldn't figure that one out - I felt all smart for a minute

Midgardsormr
Fusionator
Posts: 1057
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

Next time I'll keep my mouth shut instead of shattering your illusions!

topherfx
Posts: 6
Joined: Thu Feb 08, 2018 6:07 am

### Re: [Update] EyeonLegacy -- Added Change_Paths

Using it with Fusion 9.0.2 build 15 I get following error message:
...\Change Paths.lua:67: attempt to call field 'trim' (a nil value)

What am I doing wrong?

Midgardsormr
Fusionator
Posts: 1057
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Update] EyeonLegacy -- Added Change_Paths

trim() is a function that's in bmd.scriptlib, which should be located in your program directory's Scripts folder. Have you altered the PathMap or moved Fusion's program directory?

Preferences > Global and Default Settings > Path Maps, look for Scripts and UserPaths

SecondMan