PDA

View Full Version : Object's coordinates exporter / Help


motorsep
07-20-2005, 06:15 PM
I am looking for help. I am not a programmer at all :(
We make our first game using in-house technology. Model in MAX, export to X using Panda X exporter. That what I need.
There is a scene with level geometry, objects, lights, cameras, etc. I would like to have options added to object properties, where I can define which type of geometry object is - level or entity. Then, instead of selecting each object, I would like to click a button and dialog will appear. It should allow me to choose which object in a scene I would like to export and after pressing Ok button, it will export each object to separate .X file. And also script will generate file (text file with sertain structure) which will contain coordinates of entities (objects) relatevely to level geometry (walls, floors, etc.).
How hard would it be to implement in MAX Script?
Can somebody help me with that script?
I appresiate your time, thank you!

e-mail: a_zubov (at) kot-in-action.com
MSN: a_zubov (at) hotmail.com

motorsep
07-21-2005, 06:19 PM
I don't believe there is not person familiar with MAX Script! Please, help me out.

j-man
07-22-2005, 10:00 AM
Motorsep,

I don't think what you're asking for is hard, but it is a lot of work. Are you asking someone to write a script for you or are you hoping to hire someone to write a script. You'll need someone with DirectX experience, maybe you should be asking for help at the Pandasoft site. Are you sure this hasn't been written before?

J.

motorsep
07-22-2005, 12:06 PM
We use Panda X exporter, you just have to manually export each object... It takes time.
I am asking to write that script. If somebody interested in helping us, I'll make sketches and discription of what I need in details.

prettyPixel
07-23-2005, 12:44 PM
We use Panda X exporter, you just have to manually export each object... It takes time.
I am asking to write that script. If somebody interested in helping us, I'll make sketches and discription of what I need in details.

Here is a beginning for your exporter, just the part for assign properties... It's a macroscript (located in 'Tools' category) You see it is very simple.
Export object by object is simple too: juste a for/do and the 'exportFile' function (just add ".X" in the filename) .....

macroscript exporterMacro
category:"Tools"
buttonText:"exporter"
toolTip:"exporter"
(
global exporterFloater
try (closerolloutfloater exporterFloater)catch()
rollout exporterRollout "exporter 1.beta"
(
group "properties"
(
listbox objType_osd "Assign Object Type" items:#("level","entity") selection:1 height:2
button assignProps_osd "assign prop"
)
group "exporter"
(
label lbl1 "do something"
)

on assignProps_osd pressed do
(
clearListener()
sel=getCurrentSelection()
for obj in sel do
(
format "obj=%\n" obj.name
setUserProp obj "objectType" objType_osd.selected
)
)--on

)--rollout
exporterFloater = newRolloutFloater "exporter" 162 256
addRollout exporterRollout exporterFloater rolledUp:false
)--macro

I hope this helps

motorsep
07-23-2005, 03:11 PM
Thanks! I just have no idea about MAX Script :( But thanks anyway...
I guess I'll try to find some programmer and give it to him/her. So it probably will be nice foundation to start from...

CGTalk Moderation
07-23-2005, 03:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.