Page 43 of 64 FirstFirst ... 3339404142434445464753 ... LastLast
Results 421 to 430 of 636

Thread: The LSX tutorials thread!

  1. #421
    Join Date
    Feb 2007
    Location
    Fort Mill, SC USA
    Posts
    1,514

    Default

    Quote Originally Posted by colouredmirrorball View Post
    Spirals are easy. There are two ways:

    -Create a static dot with a high number of points (see very first tutorial here on how to do that)
    -Place on timeline, use PreMoveX, PreMoveY, PreMoveZ
    -Expressions:
    PreMoveX: sin(idx*10*pi)*0.5+0.5
    PreMoveY: cos(idx*20*pi)*0.5+0.5
    PreMoveZ: idx

    But it's also possible in the external PicEdit program (basic and pro only):
    -Open PicEdit
    -Edit >> Script
    -It's easiest if you just open a new script: File >> Open, there are a number of example scripts in Global LSX Files/PicEdit Scripts, the Sinus3D one should work good as a basic example
    -Change the code (basically just swap the X and Z coordinates around):
    Elegant as always, CMB! You should consider adding to your equation book a series of equations/routines to take that same group of points and turn them in to a variety of basic shapes: circle, square, tetrahedron, goat, etc.

    -David
    "Help, help, I'm being repressed!"

  2. #422
    swamidog's Avatar
    swamidog is online now Jr. Woodchuckington Janitor III, Esq.
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,545,803

    Default

    that would be awesome! even releasing a bunch of SFX modules for these functions would surely improve swami shows.

    i had no idea you could do scripts in picedit..

    Quote Originally Posted by dkumpula View Post
    Elegant as always, CMB! You should consider adding to your equation book a series of equations/routines to take that same group of points and turn them in to a variety of basic shapes: circle, square, tetrahedron, goat, etc.

    -David
    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.

  3. #423
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,777

    Default

    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.

  4. #424
    swamidog's Avatar
    swamidog is online now Jr. Woodchuckington Janitor III, Esq.
    Join Date
    Nov 2006
    Location
    santa fe, nm
    Posts
    1,545,803

    Default

    Quote Originally Posted by colouredmirrorball View Post
    But... that's just very basic! :P
    maybe to you, but i'm just a runt sasquatch shaved down and taught to talk.
    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.

  5. #425
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    556

    Default

    Quote Originally Posted by colouredmirrorball View Post
    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.
    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

  6. #426
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Thanks for sharing, but how to close the cirkle?

  7. #427
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,777

    Default

    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)...

  8. #428
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,777

    Default

    Quote Originally Posted by maton View Post
    Thanks for sharing, but how to close the cirkle?
    I think this would work:

    x = sin(i/(n-1)*2*3.1415)*0.49+0.5
    y = cos(i/(n-1)*2*3.1415)*0.49+0.5

  9. #429
    Join Date
    May 2013
    Location
    Fort Mill, SC
    Posts
    556

    Default

    Quote Originally Posted by colouredmirrorball View Post
    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)...
    I was wondering how to do that. Thanks

  10. #430
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Thanks a lot CMB, works. First point have to be set blank manually to avoid repeat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •