Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  


Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - AlecJames

Pages: 1 2 [3]
General Anim8or Forum / Cannot open morph target key in scene mode
« on: October 14, 2011, 06:55:43 am »
In scene mode I have an object with a morph taget.

After I created the target I went into scene mode and added keys by double clicking on the frame/morph target loaction where I wanted to change the key value - all was OK.

If I add an ASL script to set the morph target value, after closing the key value editor dialog I cannnot get the key value editor dialog to open again. 

I double click on the morph target name under the element name in the time line at the bottom of the scene screen to open the key value editor.  When that does not work I cannot find a work around to get back to the script.  Is this a bug or should I get back to the script another way?  If it is a bug is there a work around (all I can think of is to edit the script in the .an8 file)?


ASL Scripts / Can I get the orientation of another item/object?
« on: October 13, 2011, 09:37:47 am »
I've got a wheel in a scene that is rotating according to its own ASL script.  I have another 3 wheels that I want to all have the same orientation.

I tried putting in the controller script

$orientation = $MyMasterWheel.orientation;

but I get a script error "undefined identifier $MyMasterWheel".

MyMasterWheel is the oject name name in the scene object parameters.  Can I access another object in a script?  If so how?

ASL Scripts / Does print work in a controller script?
« on: September 23, 2011, 09:02:25 am »
This is my first script.  It's a controller script.

Code: [Select]
int $x;
file $console;
float $RampStep[5];
float $RampTime[5];
float $RampSpeed[5];
float $RampAccel[5];

$RampStep[0] = 0;   $RampTime[0] = 0;      $RampSpeed[0] = 0;    $RampAccel[0] = 0;
$RampStep[1] = 34;  $RampTime[1] = 0.0262; $RampSpeed[1] = 2597; $RampAccel[1] = 98182;
$RampStep[2] = 46;  $RampTime[2] = 0.0323; $RampSpeed[2] = 1300; $RampAccel[2] = -210600;
$RampStep[3] = 186; $RampTime[3] = 0.1227; $RampSpeed[3] = 1800; $RampAccel[3] = 5536;
$RampStep[4] = 200; $RampTime[4] = 0.1382; $RampSpeed[4] = 0;    $RampAccel[4] = -115714;

float $StartTime1;
float $StackingTime;
$StartTime1 = 0.76;

    $"$console", "w");

    if (time > $StartTime1)
        $StackingTime = time - $StartTime1;
        for $x=0 to 4 do
            $console.print("x=%i\n", $x);

        $orientation = (0.0, 0.0, 90.0, 1.0);
        $orientation = (0.0, 0.0, 0.0, 1.0);

I'm stuck on this line "$console.print("x=%i\n", $x);".  I know it executes because I can see its line number in the debug output trace but I don't see x=0....
Am I looking in the right place?  Does the output appear in the Anim8or debug output window? Is there a mistake?


Pages: 1 2 [3]