can you please post the scripts
tconley wrote:can you please post the scripts
Yes, i will, and my very rough instructions on what i did with them. Perhaps someone with a bit more perl nouse will sort them out to run much faster than what i did! It certainly was'nt the smartest what of doing things..
Its all on another machine, which i'll get to tommorrow.
tconley wrote:can you please post the scripts
Heres my very rough instructions...
(1) Create 'Movie' or antimation.
(2) Export as a quicktime movie..
(3) Open in Quicktime Player and export as a series of images.
File ---> Export
Movie to Image Sequence
---> Options Format PNG
---> Frames per second 10
---> No space beofre Number
(4) Use imagemagik to convert the entire directory to a 10x16! ppm file.
run from within the folder that contains the .pngs
mkdir ppm && for i in *.png; do echo $i ; /opt/local/bin/convert $i -resize 10x16! -compress none -rotate -90 ppm/$i.ppm; done
====================================
(5) Run this perl script (split_files_out.pl)
Copy this file to local
../../../0.perl/split_files_out.pl
edit for number of files.
This script converts the files into a set of channel data.
To convert to vixen file;
for i in *.dmx; do cat $i | perl ../../../0.perl/dec-to-bin.pl | perl ../../../0.perl/bin-to-base64.pl; done > bells_mime64.txt
..
(6)
../../../0.perl/strip_newlines.pl bells.txt > bellsbase64.txt
#!/usr/bin/perl
use Convert::BaseN;
# by name
my $cb_64 = Convert::BaseN->new('base64');
my $cb_2 = Convert::BaseN->new('base2');
$data = ;
$onechannelofdata = $cb_64->encode($cb_2->decode($data));
chop ($onechannelofdata);
print $onechannelofdata;
#!/usr/bin/perl
while () {
print dec2bin($_);
}
sub dec2bin {
my $str = unpack("B32", pack("N", shift));
# $str =~ s/^0+(?=\d)//; # otherwise you'll get leading zeros
$str = (substr $str , 24);
return $str;
}
mrpackethead wrote:Heres the Tripixen.. Will get them plugged up and running soon, and post some photos.These things are pretty cool, but they are tiny.
Before (or after) spinning all the LED's to the correct orientation? 😉
LabRat wrote:Before (or after) spinning all the LED's to the correct orientation? 😉
Watch it, there.
🙂
JEC wrote:Watch it, there.🙂
My tripixes are a whole lot more functional than yours Labrat.
mrpackethead wrote:My tripixes are a whole lot more functional than yours Labrat.
Wouldn't take much:grin:
BTW... I think you got your labelling attached to the wrong mask (top vs bottom). I think you're reading the name backwards.
"tripixes??" Naw... it's supposed to be read the other way, around. (though you have to watch the pronounciation) "sexipirt"
As in... wow... that is one "Sexy Part".
😉
LabRat wrote:Wouldn't take much:grin:BTW... I think you got your labelling attached to the wrong mask (top vs bottom). I think you're reading the name backwards.
"tripixes??" Naw... it's supposed to be read the other way, around. (though you have to watch the pronounciation) "sexipirt"
As in... wow... that is one "Sexy Part".
😉
You have too much time on your hands sir. Far too much.
I started another thread under the LEDTriks forum but was wondering if this method could produce animations for it - albeit rather limited, small, monochrome animations but way easier than trying from scratch. I was playing with Imagemagick for a bit to convert single images resized/monochromed to .ppm format and was thinking of writing something to convert it to LED format. It looks like you have parts of this (parsing in the PPM file) done and perhaps could be used for the input portion anyway.
Do you think it would be possible? I have a new 2x1 Triks panel and really want to show it off!
Thanks!


