In light of the Coronavirus crisis, please help make sure nothing stands in the way of social distancing in the VFX industry.

This petition asks the MPAA to act accordingly:


Sign the petition on Change.org

Be safe, everyone.

Fusion 7 VS 8 Differences in the Directory Exists LUA command

User avatar
AndrewHazelden
Fusionator
Posts: 1589
Joined: Fri Apr 03, 2015 3:20 pm
Answers: 8
Location: West Dover, Nova Scotia, Canada
Been thanked: 2 times
Contact:

Fusion 7 VS 8 Differences in the Directory Exists LUA command

#1

Post by AndrewHazelden » Thu Feb 11, 2016 4:54 am

Hi. I am working on a Fusion LUA script and as part of it I am checking the file system to see if a specific directory exist before going further to process files.

I'm noticing some peculiar inconsistencies between Fusion 7 and 8 and what is returned when you check a directory file path with the commands "eyeon.direxists" and "eyeon.fileexists" and wondered if this is happening on other people's systems too:


Fusion 7 on Windows Directory Exists Check:
Lua> print(eyeon.direxists("C:\\"))
true
Lua> print(eyeon.fileexists("C:\\"))
false


Fusion 8 on Windows Directory Exists Check:
Lua> print(eyeon.direxists("C:\\"))
false
Lua> print(eyeon.fileexists("C:\\"))
true
Lua> print(bmd.direxists("C:\\"))
false


Fusion 8 on Mac Directory Exists Check:
Lua> print(eyeon.direxists("/"))
false
Lua> print(eyeon.fileexists("/"))
true
Lua> print(bmd.direxists("/"))
false

User avatar
ISOTRON
Fusioneer
Posts: 161
Joined: Mon Aug 04, 2014 11:54 am
Location: Germany, Munich
Been thanked: 2 times
Contact:

Re: Fusion 7 VS 8 Differences in the Directory Exists LUA command

#2

Post by ISOTRON » Mon Feb 15, 2016 3:54 am

try bmd.direxists ?

because all eyeon. relevant thinks are need to switch to bmd. FU7 -> Scripts/eyeon.scriptlib FU8 -> Scripts/bmd.scriptlib