I have imported a 3D model from google sketch up. I want to know the index of each model component. For. e.g if i import a car model from sketch up i want to know which index is the wheel. Below is the lingo code. I want to use this index in step a (of code given below) to create individual member animation.
property p3Dmember -- reference to 3D cast member
property pCharacter -- reference to the character in the 3D world
-on beginSprite me
-- initiate properties and 3D world
p3Dmember = sprite(me.spriteNum).member
step a: pCharacter = p3Dmember.model
I would appreciate your time and help for solving this issue.
When you created the 3dMember in sketchup, did you assigned a name to the models?. I know sketchup is not the same as 3dsmax but when I wanted to reference a model created in 3dsmax I just simply called by its name like:
pCharacter = p3Dmember.model("main_character")
When you have the model reference, you can get its index in the model list by using the GetOne() method
The_index= getone(p3Dmember.model, pCharacter)
get 3dpi you shouldnt use director without it