Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • Nathan Haskins 5:56 pm on February 26, 2008 Permalink | Reply  

    AS Tween doesn’t like concatenated names 

    Came across this problem in AS2… dunno if it is the same in AS3 with tweening class…

    ..the object im trying to tween here is called ‘box”.
    =====================

    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var myHolder:String = “bo”;
    var ap:String = “x”;
    var finalVal:String = myHolder+ap;
    trace(finalVal);
    new Tween(finalVal, “_alpha”, Regular.easeIn, 100, 0, 1, true);

    ========
    This code doesn’t work. Tween isn’t accepting a concatenated var… i tried it inline too, no such luck.. seems like a stupid problem. lol.

     
  • Nathan Haskins 5:21 pm on February 25, 2008 Permalink | Reply  

    MEL script 

    Just finished a DT MEL kit..

    global proc flowerMaker() {

    int $numPetals = 10;
    $createShader = 1;

    //////////////////////////////////////////////

    //check for shader
    string $shads[] = `ls -mat`;
    for ($myNode in $shads) {
    if ($myNode == “petalColor”)
    $createShader = 0;
    }

    switch ($createShader) {
    case 0:
    print “the shader is already there\n”;
    break;
    case 1:
    //build the shader network
    shadingNode -asShader lambert -n “petalColor”;
    shadingNode -asTexture ramp -n “petalRamp”;
    sets -renderable true -noSurfaceShader true -empty -n petalColorSG;
    connectAttr -f petalColor.outColor petalColorSG.surfaceShader;

    //create core shader
    shadingNode -asShader lambert -n “petalCore”;
    setAttr “petalCore.color” -type double3 0.4 0.2 0.14;
    sets -renderable true -noSurfaceShader true -empty -n petalCoreSG;

    connectAttr -f petalCore.outColor petalCoreSG.surfaceShader;
    connectAttr petalRamp.outColor petalColor.color;
    setAttr “petalRamp.colorEntryList[3].color” -type double3 1 0 0;
    setAttr “petalRamp.colorEntryList[3].position” 1;
    setAttr “petalRamp.colorEntryList[2].color” -type double3 1 1 0;
    setAttr “petalRamp.colorEntryList[2].position” .5;
    setAttr “petalRamp.colorEntryList[1].color” -type double3 1 0 0;
    setAttr “petalRamp.colorEntryList[1].position” 0;
    setAttr petalRamp.type 8;

    break;
    }

    //create flower core
    sphere -ax 0 1 0 -n “core”;
    string $myCore[] = `ls -sl`;
    scale 1 .5 1;
    move 0 .2 0;
    pickWalk -d down;
    string $myCoreShape[] = `ls -sl`;
    sets -edit -forceElement petalCoreSG $myCoreShape[0];

    //build petal
    sphere – ax 0 1 0;
    move 0 0 -1.6;
    scale .7 .3 1.7;
    FreezeTransformations;
    ResetTransformations;
    string $myPetal[] = `ls -sl`;
    parent $myPetal $myCore;
    //connect to the shader network
    select $myPetal;
    pickWalk -d down;
    string $myPetalShape[] = `ls -sl`;
    sets -edit -forceElement petalColorSG $myPetalShape[0];

    //move the tip of the pedal
    select ($myPetal[0] +”.cv[3][7]“);
    move -r 0 2 0;

    //push down CV’s loop
    //one loop for the U direction
    for ($uCV = 5; $uCV <= 6; $uCV++) {

    for ($vCV = 0; $vCV <= 7; $vCV++) {
    select ($myPetal[0] +”.cv[" +$uCV +"]["+$vCV+"]“);
    move -r 0 -.3 0;
    }}
    select $myPetal[0];
    float $degreeApart = (360 / $numPetals);
    print $degreeApart;

    for ($i = 2;$i <= $numPetals; $i++) {
    duplicate;
    rotate -r 0 $degreeApart 0;

    }

    select $myCore;
    rename “Flower0″;
    }

    —————–

    That’s all fancy talk for this:

     
  • Nathan Haskins 8:54 am on February 25, 2008 Permalink | Reply  

    Speed Tutorials closed for now 

    So I’ve decided Im not going to publish anything for the next couple weeks. I have a lot of new material to study at I need to focus on getting though it all before touching 3d software.

    Good news is, once I’m finished studying I’ll have a lot of great new videos in a short amount of time!

     
  • Nathan Haskins 9:41 am on February 9, 2008 Permalink | Reply  

    Symbolism of the Shiva figure 

    So I made this 6 page booklet describing Shiva, symbolism and meaning for an art history class back in college. I dug this up today while cleaning out an old hard drive. The print version of this was good enough that the professor offered me extra credit if she could keep it.

    Chances are, if you have Wendy for art history at the University of Rhode Island, you have seen the only print version.

    Cover

    TOC
    1
    2
    3
    4
    5
    6
    credits
    back cover

     
  • Nathan Haskins 8:36 am on February 9, 2008 Permalink | Reply  

    character sketch of Gir for 1st maya class 

     
  • Nathan Haskins 10:27 pm on February 7, 2008 Permalink | Reply  

    digging thu the archives 

























     
  • Nathan Haskins 10:49 pm on February 4, 2008 Permalink | Reply  

    speed tutorial 3: organic movement for bloblike objects 

    If you’ve watched anything thats hot in scientific animation, you’ve seen the effect they have on cells, bacteria, etc… where the surface is in constant movement, almost like a liquid. Well, im working on discovering the secret, and here is an interesting find. I think i’m close.. I believe the next step it to bake the keyframes in, so the object can be easily animatable.. or perhapse there is a way to move around softbodies like a normal object.. has yet to be experimented with.

     
  • Nathan Haskins 2:01 pm on February 4, 2008 Permalink | Reply  

    What is a ‘speed tutorial’ 

    Alright.. you may have noticed I have videos linked to my blog, and posted on Youtube, with the words ‘speed tutorial’ in the title. I want to explain what I consider a speed tutorial.

    The thing about us computer people is that many of us learn visually. We learn visually at different rates as well. The video tutorial has revolutionized software education (in my option), there is nothing better short of individual mentoring or experience. We can now view the lesson in real time, on the screen, just the way it was originally done. This is the magic of video tutorials: No grey area for interpretation. It is a documented account of an actual process right down to cursor movement and shortcuts. Have I sold it enough? Alright good, on to the speed part.

    What I mean when i say speed tutorial is simple: Its a normal tutorial like video, played back at a couple hundred % speed. Why would that be useful? Well, some people out there can actually look at something played at 600% speed, and learn a lot. Yes, it’s true: Video played back at a couple hundred percent speed faster than normal can teach a lot to the discerning eye. Speed tutorial show us what is possible in a compressed span of time. Problem is, the sharp, specific details can be lost.

    Here’s where full fledged, narrated tutorials come into play. Take that video sped up to 450% speed, and slow it back down to 100%, and increase the resolution. Lets make the text readable, and add a voice over. At this level, the video instructs at finer detail.

    Sure, some dude made a bloodstream in maya 2minutes of video, but it may actually take 10 minutes to explain it to somebody new to the material; and thats all well and good. A normal speed tutorial is great for detailed instruction.

    So I’m approaching tutorials like this: First I’ll release a speed tutorial to show what’s possible, and then I’ll slow it down and explain over the top of the footage later. The full length tutorials, along with a collection of links to other tutorials, will be available on a seperate page off my website soon. I’ll post the link here as soon as possible.

    -neight

     
  • Nathan Haskins 1:53 pm on February 4, 2008 Permalink | Reply  

    Arylamines DNA adduct (environmental carcinogens) 

    digging thu my hard drive I found this piece of footage. This was the last piece of work I made for Dr. Cho before moving to St. Louis. This is a video showing 3 different confermer positions in DNA.. very subtle stuff, because if the configuration difference (which takes nanoseconds to actually change) moves to the wrong configuration, your lookin at potential caner. The video shows 3 configurations here.. this was developed for lectures/support for doctoral stuff.

    Below is the explaination from Dr. Cho.

    Arylamines belong to an important class of environmental carcinogens which are implicated in the etiology of many human cancers. 2-Aminofluorene and its derivatives are prototype arylamine carcinogens that form two DNA adducts in vivo: AF and AAF. AF is the major and most persistent adduct. It is known to exist in a sequence-dependent equilibrium between external B-type and stacked S-conformers, as defined by the location (major groove and base-displaced, respectively) of the carcinogen moiety. A minor groove binding wedged (W)-conformer has also been observed in duplexes in which the lesion is mismatched with purine bases. The dynamics of the AF-induced B/S/W-heterogeneity have been shown to be modulated by both the base sequence contexts and the progression for the length of primers, and contribute to polymerase activity through a long-range effect. The sequence effects on adduct conformation and the nature of the polymerase are key factors for determining the mutational outcomes of these important carcinogens. This animation shows the rotating views of the external B-type (B), base-displaced stacked (S), minor groove wedge (W)-conformers. The modified dG and the complementary dC are shown in cyan and green CPK, respectively, and the aminofluorene carcinogen moiety is highlighted with red CPK.

     
  • Nathan Haskins 10:27 am on February 4, 2008 Permalink | Reply  

    speed tutorial 02:catapulting dynamics 


    Above: dynamics at work.. passive and active ridgid bodies, pins, sprints, gravity. The head is from poser 5.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel