Eyeon:Script/Reference/Applications/Fuse/Classes/Parameter/Copy

From VFXPedia

Jump to: navigation, search

Contents


Summary

The Copy method is returns a new Image object which is a copy of the current image.

Usage

Image:Copy()

Example

The following example is a variation on the Null.Fuse example found at Example Fuses.

function Process(req) 
	local img = InImage:GetValue(req)
	
	local out = img:Copy()
	
	OutImage:Set(req, out)
end


Tips for Copy (edit)

  • Copy() is a generic function that all parameter types may implement. CopyOf() is specific to Image. The only real difference in behaviour is that CopyOf() may be interrupted if the tool is told to abort. Copy() will always complete the copying across of pixel data. It is generally a better idea to use CopyOf() with images, but either will work. (email from Stuart MacKinnon, eyeon)