Unable to find function playThread
by MARIA SALAZAR · in General Discussion · 06/19/2008 (12:28 pm) · 3 replies
How can I play my animation by input that command in the console. Everytime I put myobj.playThread(0,"root");
It said " (0)Unable to find function playThread" Can anyone help me please
It said " (0)Unable to find function playThread" Can anyone help me please
#2
Thank you so much. this is my code
datablock TSShapeConstructor(myball)
{
baseShape = "~/data/shapes/superbomb//myball.dts";
sequence0 = "~/data/shapes/superbomb//myball_root.dsq root";
};
datablock StaticShapeData(myball)
{
category = "myBall";
shapeFile = "~/data/shapes/superbomb/myball.dts";
};
function myball::onAdd(%this,%obj){
%obj.playThread(0,"root");
}
function StaticShapeData::create(%block)
{
%obj = new StaticShape()
{
dataBlock = %block;
};
return(%obj);
}
06/20/2008 (7:41 am)
I used %obj and also myobjname. I tried them both and none of them work Thank you so much. this is my code
datablock TSShapeConstructor(myball)
{
baseShape = "~/data/shapes/superbomb//myball.dts";
sequence0 = "~/data/shapes/superbomb//myball_root.dsq root";
};
datablock StaticShapeData(myball)
{
category = "myBall";
shapeFile = "~/data/shapes/superbomb/myball.dts";
};
function myball::onAdd(%this,%obj){
%obj.playThread(0,"root");
}
function StaticShapeData::create(%block)
{
%obj = new StaticShape()
{
dataBlock = %block;
};
return(%obj);
}
#3
Did you ever get this to work? If so, could you post the working scripts, please?
Thanks!
03/27/2009 (6:55 pm)
Maria,Did you ever get this to work? If so, could you post the working scripts, please?
Thanks!
Torque Owner Jason MacWilliams