<div dir="ltr">Sorry I'm being dim! I meant chldrenList() my head just keep saying displayList<br><br>childrenList() — Method in class org.papervision3d.core.proto.DisplayObjectContainer3D<br> 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'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, "PlumPlane") instead of PlumPlane.name = "PlumPlane" the name doesn't appear in the childrenList.<br>
<br>Yet I would have thought these lines meant it would.<br> <br>public function addChild( child :DisplayObject3D, name:String=null ):DisplayObject3D<br> {<br> // Choose name<br> name = name || <a href="http://child.name">child.name</a> || String( <a href="http://child.id">child.id</a> );<br>
<br> 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"><<a href="mailto:shannonhburnett@hotmail.com">shannonhburnett@hotmail.com</a>></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 <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's; it is a derivative of a<br>
class for showing displayList items that I found in "Learning ActionScript<br>
3.0" 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>
{<br>
import org.papervision3d.objects.DisplayObject3D<br>
;<br>
import org.papervision3d.core .proto<br>
.DisplayObjectContainer3D ;<br>
<br>
public class ec_show_DO3D_list<br>
{ public function ec_show_DO3D_list ( argo_display :<br>
DisplayObjectContainer3D = null ) : void<br>
{ trace( "ec_show_DO3D_list , constructor ................ ");<br>
if ( argo_display == null )<br>
{ trace( "ec_show_DO3D_list , nothing to display ");<br>
}<br>
else<br>
{ trace( om_padIndent( 0 ) , "model : " + argo_display )<br>
om_showChildren( argo_display , 1 ) ;<br>
} ;<br>
} ;<br>
<br>
//-------------------------------------------------------<br>
public function om_showChildren( argo_display :<br>
DisplayObjectContainer3D , argi_indent : int = 0 ) : void<br>
{ for ( var lvn_child : String in argo_display.children )<br>
{ var lvo_current : DisplayObjectContainer3D =<br>
argo_display.children[ lvn_child ] ;<br>
trace ( om_padIndent( argi_indent ) , "model : " +<br>
lvo_current ) ;<br>
om_showChildren( lvo_current , argi_indent + 1 ) ;<br>
} ;<br>
} ;<br>
<br>
//-------------------------------------------------------<br>
function om_padIndent( argi_indents : int ) : String<br>
{ var lvs_indent : String = "" ;<br>
for ( var lvi_i:uint = 0 ; lvi_i < argi_indents ; lvi_i++ )<br>
{ lvs_indent += " ";<br>
}<br>
return lvs_indent;<br>
}<br>
<br>
//-------------------------------------------------------<br>
<br>
<br>
} ;<br>
<br>
} ;<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>