Answered
Adding a layer with image from URL
I am trying to write a script that adds a layer to a document, and loads an image from a url such as "http://fantasy411.mlblogs.com/ron-burgundy.jpg" .
How can I go about doing this? Thanks in advance.
I am trying to write a script that adds a layer to a document, and loads an image from a url such as "http://fantasy411.mlblogs.com/ron-burgundy.jpg" .
How can I go about doing this? Thanks in advance.
The problem is in the extension, the code is set up for a 3 character extension, to get it to work use:-
var f = File("~/socket_sample_" + sImg.substr(sImg.length-5)); // 4 = .gif or .jpg
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.