Link:INB Home|INB English| INB русский язык|INB العربية|INB Türkiye|INB فارسی|INB Español|INB Français|INB Português|INB Deutsch|INB 國語|INB 中文|INB 日本语|INB 한국어|INB ภาษาไทย|INB tiếng Việt||Tutorials Maya Developing A Scripted Utility In 3ds Max-9
INB Português Fórum
BEM - vindo a indústria nativa e "boffin") Da era industrial, aqui está cheio de espírito de Luta, Ambos através Da rede espaço biológico nativo espírito "boffin" VEIO a mad labs.Casa inbforum.com, Nome Definitivo: inb-english.forumotion.com
INB Português Fórum

BEM - vindo a indústria nativa e boffin) Da era industrial, aqui está cheio de espírito de Luta, Ambos através Da rede espaço biológico nativo espírito boffin VEIO a mad labs.Casa inbforum.com, Nome Definitivo: inb-english.forumotion.com


Você não está conectado. Conecte-se ou registre-se

《《《《《《《上一页INBforum   Ir em baixo

上一页INBforum》》》》》》》Ver o tópico anterior Ver o tópico seguinte Ir em baixo  Mensagem [Página 1 de 1]

1 Tutorials Maya Developing A Scripted Utility In 3ds Max-9 em Sex Jan 21, 2011 8:51 am

Admin

avatar
Admin
Hello everyone, this tutorial will guide u to develop a scripted utility in 3DS MAX 9. This tutorial is for users with basic knowledge in max script or any other object oriented language. Here I explained everything step by step. Actually this coding is a part in my plug-in. Due to coding complexity, I cut shorted some and add only the few things. If time permits I will explain rest.
It covers:



  1. How to develop a tool (with rollouts, buttons, check boxes etc) in 3ds Max.
  2. How to position an object over another objects vertex or polygon.
  3. Calculating local normal of vertex and polygon in an object and positioning another object according to it.
  4. By using basic coding, making copies of an object according to user selection (may be Instance, Copy or references).

What is Scripted Utility?

Max Script allows us to create our own Tools for specific purpose and embed them into existing max interface. The Scripted Utilities are tools appear in Utility panel > Max Script Utility. Scripted utility is an easiest way of developing tools, since they are special kind of rollouts that saves the developer some UI management work.
Creating and running Scripted Utility

To create new script go to MaxScript menu->New (or)
Open Utility panel -> MaxScript->New script.
To run a script, go to MaxScript menu->Run Script (or) Utility panel -> MaxScript-> Run Script and choose script to be run.
When we put the Script file into \Scripts\Startup folder then it will automatically executed when 3DMax starts.
After execution our utility is available at Utilities panel -> maxScript -> Utility dropdown list (See fig). When we select Object Placer the rollout will appear below dropdown list as shown below.


Purpose of our utility – Object Placer


Object placer allow us to place copies of source object into the destination object‘s vertices and/or polygon’s centre, Also aligned with local normal.

The fig shows, source object Cone copied and aligned to Geosphere‘s polygons and another object box copied and aligned with vertices of Geosphere.

Fig.2 shows the final object placer utility. The contents are
About rollout with Labels.
Parameter rollout with following
Two Pick buttons for Source and Destination object selection.
Two Check boxes for selecting Vertex and /or Polygon.
A Group named Copy option with three Radio buttons for selecting copy type.
Before using this utility:


Actually this tool is not the final one, as I said earlier I added only basic coding. But here I gave you technique of developing the utility and manipulating objects through script. You can extend this script at your own way (At your own risk).

1. Object positioning is based on local normal of a polygon or vertex in destination object and world up axis. So u needs to adjust rotation manually in some places.
2. Scale Source object in Sub-object selection mode (in polygon, edge or vertex).
3. Source must be geometry object. Before selecting destination object, collapse it into Editable Poly.
4. Modify Source objects pivot for different type of arrangement.
5. When you use Vertex positioning, command panels may blink because it jumps between create and modify panels.1 | 2 | 3 | 4

3DM3.com
Copyright © Sathish Shanmugasundaram
Edit by Stryker
Source: [Você precisa estar registrado e conectado para ver este link.]]

Ver perfil do usuário http://pt.inbforum.com

上一页INBforum   Ir em baixo

上一页INBforumVer o tópico anterior Ver o tópico seguinte Voltar ao Topo  Mensagem [Página 1 de 1]

Permissão deste fórum:
Você não pode responder aos tópicos neste fórum

Copyright ©2009-2010 LTD Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

IT:SINGLESERVGoogle谷歌翻译TranslateFORUMSOFTLAYERGoogle谷歌广告联盟AdSenseAsia

 

Forumeiros.com | © PunBB | Fórum grátis de ajuda | Fale conosco | Assinalar uma queixa | Criar um fórum