3DS MAX and object name in blitz

Blitz3D Forums/Blitz3D Programming/3DS MAX and object name in blitz

Paul "Taiphoz"(Posted 2004) [#1]
Hay all.

I have this pole model, At the end of the pole I have a small box which I gave the name node1.

Im trying in code to load the model, find the box and hide it. as well as get its global x,y,z

Any help would be good.

I tried the following.

Global oak=LoadMesh("trees\oak\oak.b3d")
t=FindChild(oak,"node1")
DebugLog t

But just got 0 in reply. Iv tried it in both .3ds and b3d


electronin(Posted 2004) [#2]
Maybe blitz only detects a child entity if it's set
in your code?


CyBeRGoth(Posted 2004) [#3]
Use LoadAnimMesh, should fix your prob :)


Paul "Taiphoz"(Posted 2004) [#4]
nope didnt work Timmy. err Cybergoth.

Is there a set way to name it in max ?

And hay m8 you missed a good lecture by some wuman from Sony ENT working on the art for Getaway 2. we saw some cool art . shes the lead model/art type on it.

Then Danny did a good talk on FMM and AI avoidence.

Was really intresting.


Paul "Taiphoz"(Posted 2004) [#5]
Ahh Damnation, forgot I posted that It Actually does work m8 as Im sure your aware.

What didnt work was the B3D Pipeline. I guess it misses out entity names or something. I cant recal if I tried loading an animmesh with it though so it might just be the same as 3ds..

Im currently loading in a 3ds file and its working perfectly.


Rogue Vector(Posted 2004) [#6]
when you created the objects in 3D Studio Max, did you link them using the 'Select and Link' tool?

Regards,

Rogue Vector


Ruz(Posted 2004) [#7]
hmm, but should n't everthing be a child of the scene root?.
I had the same problem you described. perhaps you should do the find child on the scene root.