PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
3D: Modeling, Texturen, Licht, Animation, Rendern
3D allgemein und weitere 3D-Programme
Triangles
Beitrag
<blockquote data-quote="eFi_eX" data-source="post: 1029494" data-attributes="member: 211930"><p><strong>AW: Triangles</strong></p><p></p><p>Hier hast du ein Script das in der Maxscript Hilfe drinnen ist.</p><p>Einfach in nen texteditor kopieren als .ms abspeichern.</p><p>Dann in max ausführen und ein eins deiner Quad menüs einfügen.</p><p>Das script selektiert alle non quad poly's.</p><p></p><p></p><p></p><p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">macroscript</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> SelectNonQuadPolys category:</span></span><span style="font-size: 10px"><span style="color: maroon"><span style="color: maroon"><span style="font-family: 'Courier New'">"HowTo"</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">(</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">on</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> isEnabled </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">return</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">(</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> selection.count == 1 </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">and</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> classOf selection[1].baseobject == Editable_<span style="color: #ffffff">Poly</span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">)</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">on</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> execute </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">do</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">(</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">local</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> face_selection = #{}</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">local</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> base_obj = $.baseobject</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">local</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> num_faces = polyop.getNumFaces base_obj</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">for</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> f = 1 </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">to</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> num_faces </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">do</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> (</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">local</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> num_face_verts = polyop.getFaceDeg base_obj f</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">if</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> num_face_verts != 4 </span></span><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">do</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> face_selection[f] = true</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> )</span></span><span style="font-size: 10px"><span style="color: green"><span style="color: green"><span style="font-family: 'Courier New'">--end f loop</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> polyop.setFaceSelection base_obj face_selection</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="color: blue"><span style="color: blue"><span style="font-family: 'Courier New'">max</span></span></span></span><span style="font-size: 10px"><span style="font-family: 'Courier New'"> modify mode</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> modPanel.setCurrentObject base_obj</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'"> subobjectlevel = 4</span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">)</span></span><span style="font-size: 10px"><span style="color: green"><span style="color: green"><span style="font-family: 'Courier New'">--end on execute</span></span></span></span></p> </p> <p style="text-align: left"><p style="text-align: left"><span style="font-size: 10px"><span style="font-family: 'Courier New'">)</span></span><span style="font-size: 10px"><span style="color: green"><span style="color: green"><span style="font-family: 'Courier New'">--end script </span></span></span></span></p> <p style="text-align: left"><span style="font-size: 10px"><span style="color: green"><span style="color: green"><span style="font-family: 'Courier New'"></span></span></span></span></p> </p></blockquote><p></p>
[QUOTE="eFi_eX, post: 1029494, member: 211930"] [b]AW: Triangles[/b] Hier hast du ein Script das in der Maxscript Hilfe drinnen ist. Einfach in nen texteditor kopieren als .ms abspeichern. Dann in max ausführen und ein eins deiner Quad menüs einfügen. Das script selektiert alle non quad poly's. [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]macroscript[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] SelectNonQuadPolys category:[/FONT][/SIZE][SIZE=2][COLOR=maroon][COLOR=maroon][FONT=Courier New]"HowTo"[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New]([/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]on[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] isEnabled [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]return[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New]([/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] selection.count == 1 [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]and[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] classOf selection[1].baseobject == Editable_[COLOR=#ffffff]Poly[/COLOR][/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New])[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]on[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] execute [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]do[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New]([/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]local[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] face_selection = #{}[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]local[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] base_obj = $.baseobject[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]local[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] num_faces = polyop.getNumFaces base_obj[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]for[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] f = 1 [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]to[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] num_faces [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]do[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] ([/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]local[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] num_face_verts = polyop.getFaceDeg base_obj f[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]if[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] num_face_verts != 4 [/FONT][/SIZE][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]do[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] face_selection[f] = true[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] )[/FONT][/SIZE][SIZE=2][COLOR=green][COLOR=green][FONT=Courier New]--end f loop[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] polyop.setFaceSelection base_obj face_selection[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][COLOR=blue][COLOR=blue][FONT=Courier New]max[/FONT][/COLOR][/COLOR][/SIZE][SIZE=2][FONT=Courier New] modify mode[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] modPanel.setCurrentObject base_obj[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New] subobjectlevel = 4[/FONT][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New])[/FONT][/SIZE][SIZE=2][COLOR=green][COLOR=green][FONT=Courier New]--end on execute[/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [LEFT][LEFT][SIZE=2][FONT=Courier New])[/FONT][/SIZE][SIZE=2][COLOR=green][COLOR=green][FONT=Courier New]--end script [/FONT][/COLOR][/COLOR][/SIZE][/LEFT] [/LEFT] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
3D: Modeling, Texturen, Licht, Animation, Rendern
3D allgemein und weitere 3D-Programme
Triangles
Oben