Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    character animation with scripts
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Picture of draicker2003
Posted
I want to know which codes IN VBSCRIPT I must write
for the following steps.

Thanks for the help you will provide me

draicker2003
_______________________________________________________________________________________________

FOR ANIMATION OF POEPLE OR CHARACTERS
_______________________________________________________________________________________________

1)  GET THE PATH WHERE THE ACTIVE SCENE IS SAVED
    FOR EXAMPLE:
             SCENE : C:\MODELS\LEO\LEO.3DC
             PATH  : C:\MODELS\LEO\

2)  CREATE A DIRECTORY ANIM IN THE PATH YOU JUST GET
WHICH WOULD HAVE AS RESULT
    C:\MODELS\LEO\ANIM

3)  GET THIS PATH C:\MODELS\LEO\ANIM AND SAVE THERE
THE SCENE AS IDLE.3DC

4)  DEFINE TIMES, BONE NAMES, BONE POSITION AND BONE
ROTATION

    A)  TIME
           EXAMPLE:
           Dim Time(4)
                   For x  = 1 to 4
                        Time(x)= x / 4
                   Next x

     B)  BONE NAMES
           EXAMPLE:
           Dim Bonen(4)
                   For x = 1 to 4
                          Bonen(x)="Back Upper"
                   Next x

     C)  BONE POSITIONS     : X=1,Y=2,Z=3
           EXAMPLE:
           Dim BoneP(4,3)
                   For c = 1 to 4
                          BoneP(c,1)=get bone
position X ( Bonen(c) )
                          BoneP(c,2)=get bone
position Y ( Bonen(c) )
                          BoneP(c,3)=get bone
position Z ( Bonen(c) )
                   Next c

     D)  BONE ROTATION     : X=1,Y=2,Z=3
           EXAMPLE:
           Dim BoneR(4,3)
           BoneR(1,1)=-4
           BoneR(1,2)=0
           BoneR(1,3)=0
           BoneR(2,1)=4
           BoneR(2,2)=0
           BoneR(2,3)=0
           BoneR(3,1)=4
           BoneR(3,2)=0
           BoneR(3,3)=0
           BoneR(4,1)=-4
           BoneR(4,2)=0
           BoneR(4,3)=0

5)  MOVEMENT

    A) VERSION  1
          EXAMPLE:
         
          Rotate Bone
(Bonen(1),Time(1),BoneP(1,1),BoneP(1,2),BoneP(1,3), _
                                 
BoneR(1,1),BoneR(1,2),BoneR(1,3))
          Rotate Bone
(Bonen(2),Time(2),BoneP(2,1),BoneP(2,2),BoneP(2,3), _
                                 
BoneR(2,1),BoneR(2,2),BoneR(2,3))
          Rotate Bone
(Bonen(3),Time(3),BoneP(3,1),BoneP(3,2),BoneP(3,3), _
                                 
BoneR(3,1),BoneR(3,2),BoneR(3,3))
          Rotate Bone
(Bonen(4),Time(4),BoneP(4,1),BoneP(4,2),BoneP(4,3), _
                                 
BoneR(4,1),BoneR(4,2),BoneR(4,3))

    B) VERSION  2
          EXAMPLE:
         
          For d = 1 to 4
                  Rotate Bone
(Bonen(d),Time(d),BoneP(d,1),BoneP(d,2),BoneP(d,3), _
                                         
BoneR(d,1),BoneR(d,2),BoneR(d,3))
          Next d

6)  SET KEYFRAME TOTAL TO 31

7)  SET KEYFRAME /SECOND TO 30
   
8)  SAVE SCENE

9)  EXPORT SCENE TO DIRECTX AS FILE NAME IDLE.X IN
DIRECTORY C:\MODELS\LEO\ANIM
   
     A)  WITH ALL VARIANTS AS TRUE
     A)  WITH ALL VARIANTS AS FALSE
________________________________________________________________________________________________
 
Posts: 85 | Location: Leuven,Belgium | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hi
I don't really understand what you're trying to do.  I don't use 3DC for animation (except for a few trivial moments on this list) but it seems you want to use a script to animate a scene, writing out that scene to direct x as you go.  I think this is possible.

Is there any reason why you don't want to use 3DC to do the animation?  You could do this by attaching component scripts to each of your bones and other bits.

Are you trying to create a library of scripts for walking and other standard movements?  I think people would like that.  Big project :-)
 
Posts: 190 | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Junior Member
Picture of draicker2003
Posted Hide Post
yes I want to create some library for this for myself and others but when I try write this sort of script and try to run it it's always says error and even with trying to modifies them the same error. It's certainly my fault, a computer is dum, but with no knowledge I can't resolve it. :'(

???
If some one will send me or set on this forum topic some different examples about groups and their possibilities I would be able to learn it. If not, I would wait until a new version of 3d canvas appears with script recording feature
 
Posts: 85 | Location: Leuven,Belgium | Registered: Fri November 07 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Amabilis Software    3D Canvas Community    3D Canvas Discussion Forums  Hop To Forum Categories  Plug-In Development and Scripting    character animation with scripts

© Amabilis Software 2003-2007