uaiop.blogg.se

How to export davinci resolve nodes
How to export davinci resolve nodes










I often use split() to turn a path into a table, which can be more easily manipulated. These are modified a bit to remove them from the bmd namespace, making them easier to port into your own scripts. records using the provided delimiter string converts string strInput into a table, separating Seq.UNC = ( string.sub(seq.Path, 1, 2) = ] ) If seq.Extension = nil then seq.Extension = "" end String.gsub(seq.Name, "^(.-)(%d+)$", function(name, SNum) seq.CleanName = name seq.SNum = SNum end) String.gsub(seq.FullName, "^(.+)(%.+)$", function(name, ext) seq.Name = name seq.Extension = ext end) String.gsub(seq.FullPath, "^(.+)(.+)", function(path, name) seq.Path = path seq.FullName = name end) UNC : A true or false value indicating whether the path is a UNC path or not Padding : Amount of padding in the sequence, or nil if no sequence Extension: The raw extension of the clip Number : The sequence as a numeric value, or nil if no sequence SNum : The original sequence string, or "" if no sequence CleanName: The name of the clip, without extension or sequence FullName : The name of the clip w\ extension FullPath : The raw, original path sent to the function this is a great function for ripping a filepath into little bits Code: Select all SEPARATOR = nfig:sub(1,1) - Folder separator used by the Operating System.












How to export davinci resolve nodes