<div dir="ltr">Sorry I&#39;m being dim! I meant chldrenList() my head just keep saying displayList<br><br>childrenList() — Method in class org.papervision3d.core.proto.DisplayObjectContainer3D<br>&nbsp;&nbsp;&nbsp; Returns a string value with the list of objects.<br>
<br>I had a look at the DisplayObjectContainer3D.as and the list is a :Dictionary not an Array so I don&#39;t know how to sort.<br><br><br>Also in that DisplayObjectContainer3D.as file<br><br>addChild is also weird, if you do scene.adchild(PlumPlane, &quot;PlumPlane&quot;) instead of PlumPlane.name = &quot;PlumPlane&quot; the name doesn&#39;t appear in the childrenList.<br>
<br>Yet I would have thought these lines meant it would.<br>&nbsp;<br>public function addChild( child :DisplayObject3D, name:String=null ):DisplayObject3D<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Choose name<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; name = name || <a href="http://child.name">child.name</a> || String( <a href="http://child.id">child.id</a> );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this._children[ child ] = name;<br><br><br>Thanks for the above code I shall have a play.<br><br><div class="gmail_quote">2008/9/28 dsdsdsdsd <span dir="ltr">&lt;<a href="mailto:shannonhburnett@hotmail.com">shannonhburnett@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
John,<br>
<br>
where did you find the method displayList() ?? as best as I can tell,<br>
according to &nbsp;<a href="http://www.flashbookmarks.com/PV3D-Beta2-DOC/" target="_blank">http://www.flashbookmarks.com/PV3D-Beta2-DOC/</a> documentation<br>
there does not exist a scene.displayList();<br>
<br>
<br>
<br>
<br>
<br>
anyway, I have a class that shows displayobejct3d&#39;s; it is a derivative of a<br>
class for showing displayList items that I found in &quot;Learning ActionScript<br>
3.0&quot; by Shupe and Rosser;<br>
<br>
I believe that you could get this to also output viewport layer;<br>
<br>
<br>
package some_directory<br>
 &nbsp;{<br>
 &nbsp; &nbsp;import org.papervision3d.objects.DisplayObject3D<br>
;<br>
 &nbsp; &nbsp;import org.papervision3d.core &nbsp; &nbsp;.proto<br>
.DisplayObjectContainer3D ;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;public class ec_show_DO3D_list<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp; public function ec_show_DO3D_list ( argo_display :<br>
DisplayObjectContainer3D = null ) : void<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ trace( &quot;ec_show_DO3D_list , constructor ................ &quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( &nbsp;argo_display == null )<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ trace( &quot;ec_show_DO3D_list , nothing to display &quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ trace( om_padIndent( 0 ) , &quot;model : &quot; + argo_display &nbsp;)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;om_showChildren( argo_display , &nbsp;1 ) ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} ;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//-------------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public function om_showChildren( argo_display :<br>
DisplayObjectContainer3D , argi_indent : int = 0 ) : void<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ for ( var lvn_child : String in argo_display.children &nbsp;)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ var &nbsp; lvo_current : DisplayObjectContainer3D =<br>
argo_display.children[ lvn_child ] ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trace ( om_padIndent( argi_indent ) , &quot;model : &quot; +<br>
lvo_current &nbsp;) ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;om_showChildren( lvo_current , argi_indent + 1 ) ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} ;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//-------------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function om_padIndent( argi_indents : int ) : String<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ var lvs_indent : String = &quot;&quot; ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for ( var lvi_i:uint = 0 ; lvi_i &lt; argi_indents ; lvi_i++ )<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ lvs_indent += &quot; &nbsp; &nbsp;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return lvs_indent;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//-------------------------------------------------------<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} ;<br>
<br>
 &nbsp;} ;<br>
<br>
//-------------------------------------------------------------------------<br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/camera.orbit%28%29-camera.rotationY-and-displayList-tp19697507p19712684.html" target="_blank">http://www.nabble.com/camera.orbit%28%29-camera.rotationY-and-displayList-tp19697507p19712684.html</a><br>

Sent from the Papervision3D mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
</blockquote></div><br></div>