Consortium

Discussion in 'Hangout Threads' started by Consortium, Feb 21, 2014.

  1. Clockwork

    Clockwork Master Astronaut

    Well it doesn't have to be a square.
     
    Elate likes this.

  2. [​IMG]
     
  3. Lobo

    Lobo Spaceman Spiff

    I have a bunch of pics in the pics thread, you could dig it :DD
     
  4. Clockwork

    Clockwork Master Astronaut

    [​IMG]
     
    40880472, Jonesy, Seajun_ and 4 others like this.
  5. That's cool, dunno what I'd want to use though.
     
  6. Rakuida

    Rakuida Phantasmal Quasar

    so i got Fire Emblem: Awakening
    it's gr8 so far, m8

    The one that people kinda identify me with is (as in i've used it the longest)
    GOBLINGNETMELAN.PNG
    or you can draw liberty prime, which everyone sees me as as well

    PRIMELIB.PNG

     
    Seajun_ and WoxandWarf like this.
  7. SexualRhinoceros

    SexualRhinoceros Existential Complex

    [​IMG]
    Like this is the best thing I've ever made
     
    40880472, Jonesy, Seajun_ and 4 others like this.
  8. Clockwork

    Clockwork Master Astronaut

    gib photoshop script.
     
  9. SexualRhinoceros

    SexualRhinoceros Existential Complex

    I would but I (il)legally downloaded Photoshop and can't get access to a bit of code I'd need for it to be complete so its ultra buggy :(
     
  10. Clockwork

    Clockwork Master Astronaut

    Reported 2 the NSA.
     
    Elate, Jonesy, PositivAndroid and 2 others like this.
  11. SexualRhinoceros

    SexualRhinoceros Existential Complex

    nou don't. I went and (il)legally downloaded the newest version so I finished the script which works perfactly now!
    Code:
    //makes rainbow pictures, name as rainbowsyay.jsx
    //Thats all I'm giving you in comments, lrn2read code scrub
    #target photoshop
    app.bringToFront();
    
    var LOWER_HUE_LIMIT = -180;
    var hueValue = LOWER_HUE_LIMIT;
    
    var currentDoc = app.activeDocument;
    
    for ( var j = 0; j < 90; j++) {
        currentDoc.activeLayer.duplicate();
    }
    
    for ( var i = 0; i < currentDoc.layers.length; i++ ) {
        currentDoc.activeLayer = currentDoc.layers[i];
        hueValue = hueValue < 180 ? hueValue + 4 : LOWER_HUE_LIMIT;
        applyHsl( hueValue, 0, 0 );
    }
    
    makeFrameAni();
    
    setLoopForever();
    
    function applyHsl( hue, saturation, lightness ) {
        var HUE_SAT_ADJUSTMENT_V2_SYM  = 'Hst2';
        var COLORIZE_SYM              = 'Clrz';
        var ADJUSTMENT_SYM            = 'Adjs';
        var HUE_SYM                    = 'H  ';
        var SATURATION_SYM            = 'Strt';
        var LIGHTNESS_SYM              = 'Lght';
        var HUE_SATURATION_SYM        = 'HStr';
    
        var colorizeDescriptor = new ActionDescriptor();
        var hueSatDescriptor = new ActionDescriptor();
        var hueSatAdjustmentList = new ActionList();
    
        colorizeDescriptor.putBoolean( charIDToTypeID( COLORIZE_SYM ), false );
    
        hueSatDescriptor.putInteger( charIDToTypeID( HUE_SYM ), hue );
        hueSatDescriptor.putInteger( charIDToTypeID( SATURATION_SYM ), saturation );
        hueSatDescriptor.putInteger( charIDToTypeID( LIGHTNESS_SYM ), lightness );
    
        hueSatAdjustmentList.putObject( charIDToTypeID( HUE_SAT_ADJUSTMENT_V2_SYM ), hueSatDescriptor );
        colorizeDescriptor.putList( charIDToTypeID( ADJUSTMENT_SYM ), hueSatAdjustmentList );
    
        executeAction(
            charIDToTypeID( HUE_SATURATION_SYM ),
            colorizeDescriptor,
            DialogModes.NO
        );
    }
    
    function makeFrameAni(){
    var idmakeFrameAnimation = stringIDToTypeID( "makeFrameAnimation" );
    var idanimationFramesFromLayers = stringIDToTypeID( "animationFramesFromLayers" );
        var desc13 = new ActionDescriptor();
    executeAction( idmakeFrameAnimation, undefined, DialogModes.NO );
    executeAction( idanimationFramesFromLayers, desc13, DialogModes.NO );
    }
    //fuck, this took forever to get working
    function setLoopForever() {
    var idsetd = charIDToTypeID( "setd" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idanimationClass = stringIDToTypeID( "animationClass" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idanimationClass, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T  " );
            var desc6 = new ActionDescriptor();
            var idanimationLoopEnum = stringIDToTypeID( "animationLoopEnum" );
            var idanimationLoopType = stringIDToTypeID( "animationLoopType" );
            var idanimationLoopForever = stringIDToTypeID( "animationLoopForever" );
            desc6.putEnumerated( idanimationLoopEnum, idanimationLoopType, idanimationLoopForever );
        var idanimationClass = stringIDToTypeID( "animationClass" );
        desc5.putObject( idT, idanimationClass, desc6 );
    executeAction( idsetd, desc5, DialogModes.NO );
    }
    All you have to do is pull up a picture, run the code, the "Save for Web" and you're Good 2 go
     
  12. Jonesy

    Jonesy Sarif's Attack Kangaroo Forum Moderator

    I'm happy being a cyberpunk kangaroo.

    Also, all I saw was:

     
    Last edited: Jul 23, 2014
  13. I'm too lazy to read documentation - what is class actionDescriptor? (from the context it seems to be some kind of generalized class for storing a set of parameters corresponding to a photoshop operation?)
     
  14. F-ranko

    F-ranko Heliosphere

    Draw me as Mega Man pls
     
  15. SexualRhinoceros

    SexualRhinoceros Existential Complex

    to be honest, I didn't read documentation either. I just went to a website for scripting, found a random script that had to do with hue's and I snagged that function. I literally learned everything else just from that function and debugging (I didn't know javascript either before starting)
     
  16. It turned out to be exactly what I suspected funnily enough - it's a dictionary-like framework for storing arbitrary data. The key in this case seems to be the 'typeID' (which I found out is a sequence of numbers that can be generated from a more human readable 4 character sequence or 'charID')
     
  17. SexualRhinoceros

    SexualRhinoceros Existential Complex

  18. WtfzillaBro

    WtfzillaBro Guest

    it was a cold, brisk winter night.
    After having tucked the children into bed,
    I felt as if though I needed a relaxation period.
    So I went downstairs, grabbed a small alcoholic beverage from my fridge,
    and stepped out onto my porch.
    The air that evening had smelled of conifers and juniper berries and had a whistling that seemed to say,
    "Fuck her right in the pussy, Malachi".
    And so I did.
    Right in the pussy.
     
    PositivAndroid and critsarecool like this.
  19. Clockwork

    Clockwork Master Astronaut

    [​IMG]
     
  20. Clockwork

    Clockwork Master Astronaut

Share This Page