"Help, help, I'm being repressed!"
suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
But... that's just very basic! :P
Yeah I only found the script thing in PicEdit by sheer luck, it's not really documented anywhere. Does anybody recognise the language? The syntax isn't 100 % clear for me. Editing existing scripts is no problem but maybe it's nice to see how far you can push this... But I like expressions on the timeline more since then you can use real time parameters.
suppose you're thinkin' about a plate o' shrimp. Suddenly someone'll say, like, plate, or shrimp, or plate o' shrimp out of the blue, no explanation. No point in lookin' for one, either. It's all part of a cosmic unconciousness.
It appears this is visual basic syntax. I was able to program an "if then else" statement as well as use the "modulus" function to make some segmented circles. This is so much easier than drawing color into the picture. I have also been able to blank segments of a circle using the same idea as below just using the blank command rather than color command. There is alot of potential here for quickly allocating part numbers or color to certain segments or points of a pattern. I am also wondering if you can load an existing Pic file and change the part number or color then re-save the file under a new name. This will be tested soon.
Anyway here is a script file have been playing with the last few hours. Enjoy.
Start Code:
n = 100
Pic.N = n
for i = 1 to n
segment = i/10
blank = segment mod 2
if blank = 1 then
Pic.R i,0
Pic.G i,0
Pic.B i,255
else
Pic.R i,255
Pic.G i,128
Pic.B i,0
end if
x = sin(i/n*2*3.1415)*0.49+0.5
y = cos(i/n*2*3.1415)*0.49+0.5
Pic.X i,x
Pic.Y i,y
next
SET objShell = CREATEOBJECT("WScript.Shell")
Pic.SaveToFile(objShell.SpecialFolders("MyDocument s") & "\My LSX Files\circle_001.pic")
End Code:
Watching Lasers Since 1981
Thanks for sharing, but how to close the cirkle?
You can use the [ CODE] and [/ CODE] tags on the forum, it avoids the forum automatically splitting long text (there is a space in "MyDocument s" in your code)...
Thanks a lot CMB, works. First point have to be set blank manually to avoid repeat.