www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: subhalakshmi27 on May 17, 2012, 07:07:40 am

Title: Multiple rotation argument in bones conversion
Post by: subhalakshmi27 on May 17, 2012, 07:07:40 am
Hi All,

I am trying to convert mesh.xml file to .bones file with multiple rotation argument (x90,z180) but I am getting an Illegal argument exception.


D:\jpct\bones\Bones\scripts>jmeOgre2Bones.bat -rotation x90,z180 -out model_rot_x90_z180.group.bones -in model.mesh.xml

D:\jpct\bones\Bones\scripts>echo off
Exception in thread "main" java.lang.IllegalArgumentException: Unknown args: [z1
80]
        at raft.jpct.bones.util.JMEOgreImporter.main(JMEOgreImporter.java:167)


I saw the help manual, it is mentioned to add comma between the arguments.

usage: JMEOgreImporter [options] -in <ogre.mesh.xml> [ogre.mesh.xml...]
options:
    -out <destination file>                         : destination file to write
    -scale <scale>                                  : loading scale, default 1
    -rotation <<x|y|zdegrees>[,x|y|zdegrees]...>    : loading rotation, default
none (sample: x180,y180)

Please let me know if I am missing some arguments.

Thanks and Regards,
Subha
Title: Re: Multiple rotation argument in bones conversion
Post by: subhalakshmi27 on May 17, 2012, 07:17:15 am
Hi All,

Instead of jmeOgre2Bones.bat when I used jmeOgre2Bones.sh this problem is not observed and it was working fine.

Regards,
Subha
Title: Re: Multiple rotation argument in bones conversion
Post by: raft on May 17, 2012, 01:04:38 pm
yes the syntax is true. I think the problem is related with Windows' command line parser. possibly it uses comma (,) as an argument seperator. try giving rotation argument in quotes:

Code: [Select]
jmeOgre2Bones.bat -rotation "x90,z180" -out model_rot_x90_z180.group.bones -in model.mesh.xml