Using applyPosition() I resolved this! =D Thanks man!
On 1 mar, 14:06, Nathan Queija <[email protected]> wrote: > That's it Fabrice! > The problem is when I'm exporting from Cinema 4D. > It's a map, that has many models, and I'm exporting each one, on Flash > they are positioned in the same position that in Cinema 4D, but the > position of all is (0,0,0) because is the position of the origin. > Thank you so much from Brazil for your help man. > Sorry for the bad english. xD > > On 1 mar, 12:37, Fabrice3D <[email protected]> wrote: > > > oh and if its as3, you do check the positions reading at > > myclass.mesh[index] right? > > because if you do > > var myas3:MyPrefabAS = new MyPrefabAS(); > > addChild(myas3); > > trace(myas3.position); --> will trace 0,0,0 as expected as its the > > ObjectContainer3D class > > > Fabrice > > > On Mar 1, 2011, at 3:10 PM, Nathan Queija wrote: > > > > Hi Fabrice! > > > I Exported one model with this option set to false just to check and I > > > got the same result. Position (0,0,0). =/ > > > > On 1 mar, 10:18, Nathan Queija <[email protected]> wrote: > > >> Thanks Fabrice, > > >> This option in my Prefab is set to true. > > >> Do you know if I can do , and how can do this via code? > > >> Because I exported 71 models, and it will be a hard work do this > > >> again. > > >> Thanks for the help. > > > >> On 1 mar, 10:05, Fabrice3D <[email protected]> wrote: > > > >>> yes, open Prefab preference panel and set auto recenter at load to true > > >>> or false depending on what you want > > > >>> Fabrice > > > >>> On Mar 1, 2011, at 1:46 PM, Nathan Queija wrote: > > > >>>> Hi all! > > >>>> I am loading .dae models into away 3D, using Prefab. > > >>>> I export an actionscript class and it works fine. > > >>>> The Model is loaded, I can change its textures, that's ok. > > >>>> But the problem is that these objects are in many different positions, > > >>>> but when I trace their positions it always returns (0,0,0). Do you > > >>>> know how can I resolve this? > > >>>> I created an ObjectContainer3D and I am adding all these objects in > > >>>> this container. > > >>>> Thanks!
