  | | | two small newbie questions. cheers :) | two small newbie questions. cheers :) 2004-03-31 - By James Carrington
Back Hi all... newbie here. Could someone explain what the difference between these two lines of code are? Scene.model[1].transform.rotate(10,10,10) And Scene.model[1].rotate(10,10,10) I'm trying to get my head round the transform object and don't get this. They both appear to do exactly the same thing. Another thing I puzzle over is the fact that I can type scene.model[1] and scene.model("mybox") and refer to the same object. How does this model[1] / camera[1] thing work??? Thanks in advance for any help. Best James. James Carrington 3D Illustrator email: jcarrington@(protected) <mailto:jcarrington@(protected)> Tel: +44 (0) 1757 703620 Record Playground Equipment Ltd Waterfront Complex Selby North Yorkshire United Kingdom ************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete it and any attachents.
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas -microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office :smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@(protected)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle18 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @(protected) Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Hi all… newbie here. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Could someone explain what the <span class=GramE>difference between these two lines of code are</span>?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2 color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;color:red'>Scene .model</span></font></span></span><span class=GramE><font size=2 color=red face=Arial><span style='font-size:10.0pt; font-family:Arial;color:red'>[</span></font></span><font size=2 color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;color:red'>1].<span class=SpellE>transform.rotate</span>(10,10,10)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>And<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2 color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;color:red'>Scene .model</span></font></span></span><span class=GramE><font size=2 color=red face=Arial><span style='font-size:10.0pt; font-family:Arial;color:red'>[</span></font></span><font size=2 color=red face=Arial><span style='font-size:10.0pt;font-family:Arial;color:red'>1].rotate (10,10,10)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I’m trying to get my head round the transform object and don’t get this. They both appear to do exactly the same thing.<o:p>< /o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Another thing I puzzle over is the fact that I can type <span class=SpellE><span class=GramE><font color=red><span style='color:red'>scene .model</span></font></span></span><span class=GramE><font color=red><span style='color:red'>[</span></font></span><font color=red><span style='color:red'>1]</span></font> and <span class=SpellE><font color=red><span style='color:red'>scene.model</span></font></span><font color=red><span style='color:red'>(“<span class=SpellE>mybox</span>” ;)</span></font> and refer to the same object. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>How does this <span class=GramE>model[</span>1] / camera[1] thing work???<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Thanks in advance for any help.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Best<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>James. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><st1:PersonName><strong><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;mso-no-proof:yes'>J</span></font></b ></strong><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;mso-no-proof: yes'>ames <strong><b><font face=Arial><span style='font-family:Arial'>C</span> </font></b></strong>arrington</span></font></st1:PersonName><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size: 10.0pt;font-family:Arial;mso-no-proof:yes'>3D Illustrator</span></font></b>< /strong><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>email: </span></font><a href="mailto:jcarrington@(protected)"><strong><b><font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;color:windowtext; mso-no-proof:yes;text-decoration:none;text-underline:none'>jcarrington@(protected) .co.uk</span></font></b></strong></a><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>Tel: +44 (0) 1757 703620</span></font><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>Record Playground Equipment Ltd</span>< /font><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>Waterfront Complex </span></font><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial;mso-no-proof:yes'>Selby</span></font><span style='mso-no -proof: yes'><o:p></o:p></span></p>
<p class=MsoNormal><st1:place><font size=2 face=Arial><span style='font-size: 10.0pt;font-family:Arial;mso-no-proof:yes'>North Yorkshire</span></font></st1 :place><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><st1:country-region><st1:place><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;mso-no-proof:yes'>United Kingdom< /span></font></st1:place></st1:country-region><span style='mso-no-proof:yes'><o:p></o:p></span></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt;mso-no-proof:yes'> <o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt; mso-no-proof:yes'>*************************************************<o:p></o:p>< /span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt; mso-no-proof:yes'>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete it and any attachents.</span></font><font size=2><span style='font-size:10.0pt'><o:p></o:p ></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
|
|
|