[Update] EyeonLegacy -- Added Change_Paths  [SUBMITTED]

Moderator: SecondMan

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

[Update] EyeonLegacy -- Added Change_Paths

#1

Post by Midgardsormr » Wed Feb 07, 2018 5:34 pm

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

Untitled.png
Untitled.png (12.6 KiB) Viewed 201 times

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

Changelog:

v1.1, 2018-02-07: Added Change_Paths v4

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
(29.51 KiB) Downloaded 26 times
Last edited by Midgardsormr on Wed Feb 07, 2018 9:34 pm, edited 2 times in total.

User avatar
SecondMan
Site Admin
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 4
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: [Update] EyeonLegacy -- Added Change_Paths

#2

Post by SecondMan » Wed Feb 07, 2018 8:25 pm

Thanks Bryan! :cheer:

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...)

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

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

#3

Post by Midgardsormr » Wed Feb 07, 2018 9:36 pm

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.

User avatar
SecondMan
Site Admin
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 4
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: [Update] EyeonLegacy -- Added Change_Paths

#4

Post by SecondMan » Thu Feb 08, 2018 8:33 pm

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. :)

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

Re: [Update] EyeonLegacy -- Added Change_Paths

#5

Post by Midgardsormr » Thu Feb 08, 2018 9:12 pm

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

User avatar
SecondMan
Site Admin
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 4
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: [Update] EyeonLegacy -- Added Change_Paths

#6

Post by SecondMan » Thu Feb 08, 2018 9:20 pm

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

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

Re: [Update] EyeonLegacy -- Added Change_Paths

#7

Post by Midgardsormr » Thu Feb 08, 2018 9:38 pm

:lol: 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

#8

Post by topherfx » Fri Feb 09, 2018 2:13 am

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?

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

Re: [Update] EyeonLegacy -- Added Change_Paths

#9

Post by Midgardsormr » Fri Feb 09, 2018 8:18 am

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

Untitled.png

User avatar
SecondMan
Site Admin
Posts: 3416
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 4
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: [Update] EyeonLegacy -- Added Change_Paths

#10

Post by SecondMan » Fri Feb 09, 2018 7:29 pm

Available in Reactor now! :)