I am trying to import a vertexanimated Mesh from Maya via ActorX.
The .3d file are in the right folder.
After compiling I receive a couple of Warnings:
Bad MESH IMPORT
Bad MESH SEQUENCE
Bad MESHMAP
Seems it can not import.
Then the error:
DefaultProperties (Prayerflag): Error: ObjectProperty Engine.Actor.Mesh : unresolved reference to VertMesh Chavezmeshes.prayerflag
I understand this, if it can not import,it can not use it.
Just want to ask if there are some mistakes in the script or does it just depend on the exported files?
class Prayerflag extends Actor placeable;
#exec MESH IMPORT MESH=Prayerflag ANIFILE=Models\Prayerflags_a.3d DATAFILE=Models\Prayerflags_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Prayerflag X=0 Y=0 Z=0 PITCH=0 YAW=0 ROLL=0
#exec MESH SEQUENCE MESH=Prayerflag SEQ=Prayerflagwave STARTFRAME=0 NUMFRAMES=61
#exec TEXTURE IMPORT NAME=Prayerflagtex FILE=Textures\Prayerflagtex.dds
#exec MESHMAP SETTEXTURE MESHMAP=Prayerflag NUM=0 TEXTURE=Prayerflagtex
simulated function PostBeginPlay()
{
LoopAnim('Prayerflag',1.00);
SetAnimFrame(FRand());
Super.PostBeginPlay();
}
defaultproperties
{
bStatic=False
bNoDelete=True
bStasis=False
Drawscale=1.000000
DrawType=DT_Mesh
Mesh=VertMesh'Chavezmeshes.Prayerflag'
}
I tried also Mesh instead of Vertmesh and only the name
Thanx for any help!
The .3d file are in the right folder.
After compiling I receive a couple of Warnings:
Bad MESH IMPORT
Bad MESH SEQUENCE
Bad MESHMAP
Seems it can not import.
Then the error:
DefaultProperties (Prayerflag): Error: ObjectProperty Engine.Actor.Mesh : unresolved reference to VertMesh Chavezmeshes.prayerflag
I understand this, if it can not import,it can not use it.
Just want to ask if there are some mistakes in the script or does it just depend on the exported files?
class Prayerflag extends Actor placeable;
#exec MESH IMPORT MESH=Prayerflag ANIFILE=Models\Prayerflags_a.3d DATAFILE=Models\Prayerflags_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Prayerflag X=0 Y=0 Z=0 PITCH=0 YAW=0 ROLL=0
#exec MESH SEQUENCE MESH=Prayerflag SEQ=Prayerflagwave STARTFRAME=0 NUMFRAMES=61
#exec TEXTURE IMPORT NAME=Prayerflagtex FILE=Textures\Prayerflagtex.dds
#exec MESHMAP SETTEXTURE MESHMAP=Prayerflag NUM=0 TEXTURE=Prayerflagtex
simulated function PostBeginPlay()
{
LoopAnim('Prayerflag',1.00);
SetAnimFrame(FRand());
Super.PostBeginPlay();
}
defaultproperties
{
bStatic=False
bNoDelete=True
bStasis=False
Drawscale=1.000000
DrawType=DT_Mesh
Mesh=VertMesh'Chavezmeshes.Prayerflag'
}
I tried also Mesh instead of Vertmesh and only the name
Thanx for any help!
Comment