  | | | getSkeleton | getSkeleton 2004-04-02 - By Romano Ivanovic
Back thank you people......it works great!!!
-- -- Original Message -- -- From: Bradley Gabe To: XSI@(protected) Sent: Friday, April 02, 2004 12:09 AM Subject: Re: [scripting] getSkeleton
Sorry... looks as though lucas mail server has developed a stutter.
Or better yet, get yourself a pointer to the chain root. All the bones and the effector are properties of the chain root.
var oChn = ActiveSceneRoot.FindChild("nameOfChainRoot"); var oBones = oChn.Bones; var oEff = oChn.Effector;
LogMessage(oChn); for(var i = 0; i<oBones.count; i++){ LogMessage(oBones(i)); } LogMessage(oEff);
Hi, if you simply want to get all children under the chain root you could try this:
' You have to select the chain root first for this to work set oChainRoot = selection(0)
set oChildren = oChainRoot.findchildren for each oChild in oChildren logmessage oChild next
Cheers, F.
Romano Ivanovic wrote: hi, Im looking for a command that gives me names of all the bones and children in a root! GetSkeleton is a good command but it gives me just the root, bones and effector.....not children!
thx
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
-- Bradley R. Gabe Industrial Light & Magic
-- Bradley R. Gabe Industrial Light & Magic
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> <META content=text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1 http-equiv=Content-Type> <META content="MSHTML 5.00.3502.5390" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>thank you people......it works great!!!</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A href="mailto:bgabe@(protected)" title=bgabe@(protected)>Bradley Gabe</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:XSI@(protected)" title=XSI@(protected)>XSI@(protected)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, April 02, 2004 12:09 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [scripting] getSkeleton</DIV> <DIV><BR></DIV>Sorry... looks as though lucas mail server has developed a stutter.<BR><BR> <BLOCKQUOTE cite="mid406C7737.7040709@(protected)" type="cite"> Or better yet, get yourself a pointer to the chain root. All the bones and the effector are properties of the chain root.<BR><BR><TT>var oChn = ActiveSceneRoot.FindChild("nameOfChainRoot");<BR>var oBones = oChn.Bones;<BR>var oEff = oChn.Effector;<BR><BR>LogMessage(oChn);<BR></TT><TT>for(var i = 0; i<oBones.count; i++){<BR> LogMessage(oBones(i));<BR>}<BR>LogMessage(oEff);<BR><BR><BR></TT> <BLOCKQUOTE cite="mid001901c41802$46df3150$8202a8c0@(protected)" type="cite"><PRE wrap="">Hi, if you simply want to get all children under the chain root you could try this:
' You have to select the chain root first for this to work set oChainRoot = selection(0)
set oChildren = oChainRoot.findchildren for each oChild in oChildren logmessage oChild next
Cheers, F.
Romano Ivanovic wrote: </PRE> <BLOCKQUOTE type="cite"><PRE wrap="">hi, Im looking for a command that gives me names of all the bones and children in a root! GetSkeleton is a good command but it gives me just the root, bones and effector.....not children!
thx </PRE></BLOCKQUOTE><PRE wrap=""><!----> --- Unsubscribe? Mail <A class=moz-txt-link-abbreviated href="mailto:Majordomo @(protected)">Majordomo@(protected)</A> with the following text in body: unsubscribe xsi
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">-- Bradley R. Gabe Industrial Light & Magic </PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">-- Bradley R. Gabe Industrial Light & Magic </PRE></BLOCKQUOTE></BODY></HTML>
|
|
 |