회원 로그인
정보기억 정보기억에 체크할 경우 다음접속시 아이디와 패스워드를 입력하지 않으셔도 됩니다.
그러나, 개인PC가 아닐 경우 타인이 로그인할 수 있습니다.
PC를 여러사람이 사용하는 공공장소에서는 체크하지 마세요.
소셜네트워크 서비스를 통해서 로그인하시면 별도의 로그인 절차없이 회원서비스를 이용하실 수 있습니다.


최근 게시물

1.노션에서 작성 중

1.노션에서 작성 중

개편하기 전까지 노션에서 작성 중

2024.04.04//read more

2.ChatGPT

2.ChatGPT

OpenAI로 대규모 언어 모델대화형...

2023.03.16//read more

3.노코딩 게임 엔진 - 빌..

3.노코딩 게임 엔진 - 빌..

빌드 지원안드로이드iOS윈도우즈특이사...

2023.03.14//read more

4.(완료) 미접속 회원 정..

4.(완료) 미접속 회원 정..

[완료] 36명의 회원을 정리하였습니...

2023.02.16//read more

5.매뉴얼 플러스 - 전자제..



안정적인 DNS 서비스 DNSEver
DNS Powered by DNSEver.com


[스크랩] Expressions to scale, rotate and spin by Aziz Khan, Afghanistan

artsone | 2008.01.31 03:36 | 조회 2735

Expressions to scale, rotate and spin by Aziz Khan, Afghanistan

expe0101.jpg

Hello every one!! And welcome to Maya expression tutorial, in this tutorial I will show you how to rotate, scale,
and spin your objects thorough expressions using Maya, this tutorial is very handy to create, explosions like tank explosion, asteroid explosions so on and so forth. So let’s get started.

Step 1: Create any object you like to experiment with, in this I have created a piece of stone, as shown in the image below.

expe0102.gif

Step 2: Now go to your Dynamics module by holding down the (H) key from your keyboard and click. Select Create Emitter option box from the Particle drop down menu.

expe0103.gif expe0104.gif

Step 3: Now change the following settings as shown in the image and Select Hit Create button.

expe0105.gif

like the following image. Then first select your object which you are going to instance then go to Particles drop down menu again then choose the option box for Instancer (Replacement).

expe0106.gif expe0107.gif

The option box will appear for Instancer (Replacement) keep everything as default and then hit create, the picture is illustrating down.

expe0108.gif

Step 5: Now hit play button you can see the objects are emitting instead of particles and the size of objects are all the same and there is no rotation or spinning, so let’s start working on them.

expe0109.gif

Step 6: Go to the Window menu and bring up the Outliner to select the exact object, from the outliner window click on the Particle1 to select it on the viewport like the image below.

expe0110.gif

Step 7: Now open up your Attributes editor by (CTRL+A) from your keyboard, and then scroll down to button to find out (Add Dynamic Attributes) when you find it just hit the (General) button to create new custom attributes, so in the Attributes name choose any name you like it does not matter what you are naming it, but always keep the names close to what you are doing with it, since we are first dealing with (Scale) I will name it (Scale_new) so you can name it anything you like, if you are new to expressions I suggest you follow along with me to avoid any confusion.

expe0111.gif

Step 8: Ok now if you see in (Per Particle (Array) Attributes) you will see new name, the name will appear according

what name you have given in Attributes name, like the image below.

expe0112.gif

Step 9: Right click in the box of Scale_new then choose (Creation Expression) and write the following expression.

float $anything= rand(6,3);
particleShape1.Scale_new= <<$anything,$anything,$anything,>>;


if you want to play with the size of objects you can play around the numbers on the rand,

expe0113.gif

expe0114.gif

Step 10: Scroll up to find the (Instancer (Geometry Replacement) tab then on the (General Options) on the Scale drop down menu choose newly created name. In this case mine is (Scale_new).

expe0115.gif

Step 11: Now, if you play then you will see some random sizes of objects are coming out of emitter. It’s time to deal with rotation of objects so let’s create another (Custom Attribute) like we did before for Scale, again go to (Add Dynamic Attributes) tab and do the same as we did before, but the name should be different since we are dealing with Rotation, I name it Rotation_new so you can go regardless with any name you prefer.

expe0116.gif

expe0117.gif

Step 12: Now write the following expression.

particleShape1.Rotation_new= <>;

expe0118.gif

Step 13: Now go back to (Instancer (Geometry Replacement) tab on the (Rotation Options) choose (Rotation) then from drop down menu choose your custom name.

Now if you play then you will see on the objects they are not rotating instead they are oriented in different direction, that what we need next we will deal with spinning of objects.

expe0119.gif

expe0120.gif

Step 14: Ok last but not the least create one more custom name for our object spinning, name it as anything you prefer, but in this I have named Rand_rotation, now you have to change the vector radio button to Float radio button since we will deal with (Creation Expression) and (Runtime Expression).

expe0121.gif

Step 15: Write the below expression...

particleShape1.Rand_rotation= rand(-50, 40);

if you think these numbers too high you can decrease it to any satisfactory numbers.

expe0122.gif

Step 16: Anyway play your animation as you can see there is no changing on the spinning of the objects, ok we will add the expression for the spinning of the objects, ok open up your expression editor by default the radio button is set to (Creation) since we will deal with (Runtime Expression) ok hit the button called (runtime after dynamics) and then add this expression below...

particleShape1.Rotation_new += particleShape1.Rand_rotation;

With this you will be able to spin your objects.

expe0123.gif

I hope you find some thing new, so here is the small animation of my scene below.

* Related Links
Scene Setup: Download here
Authors Website: http://www.3dgroup.3dk.org
출처 : http://www.cgarena.com/freestuff/tutorials/maya/expressions/

466개(19/24페이지)
마야
번호 제목 글쓴이 조회 날짜
공지 마야 뷰포트 네비게이션 팁 푸딩뱃살 42782 2020.04.06 17:22
공지 Maya 버전 별 Python 버전 푸딩뱃살 64090 2014.01.08 17:59
104 [Script] Python for Maya - 2. select (선택) 사진 첨부파일 artsOne 5020 2008.02.20 23:18
103 [Script] Python for Maya - 1. 시작 사진 첨부파일 artsOne 5815 2008.02.19 13:45
102 [참고] Simulating Musculature in Maya 사진 첨부파일 artsOne 3011 2008.02.17 18:41
101 [Script] MEL - checkBox 사진 첨부파일 artsone 3304 2008.02.11 02:49
100 [Script] 연산자(Operator) 정의 artsone 2473 2008.02.09 18:17
99 [Script] 변수(Varialbe) 정의 artsone 2385 2008.02.02 19:00
>> [Script] [스크랩] Expressions to scale, rotate and spin by Aziz Khan 사진 첨부파일 artsone 2736 2008.01.31 03:36
97 [Base] 속성(Attribute) 정의 artsone 2029 2008.01.29 22:39
96 [Script] MEL - 이동 제어문 return artsone 3192 2008.01.28 21:48
95 [Script] MEL - 이동 제어문 continue artsone 3111 2008.01.28 21:17
94 [Script] MEL - 이동 제어문 break artsone 3326 2008.01.28 21:01
93 [Script] MEL - 반복 제어문 for artsone 3446 2008.01.25 21:12
92 [Script] MEL - 반복 제어문 for-in artsone 3297 2008.01.28 22:39
91 [Script] MEL - 반복 제어문 do-while artsone 2842 2008.01.25 20:58
90 [Script] MEL - 반복 제어문 while artsone 3126 2008.01.23 23:46
89 [Script] MEL - 조건 제어문 ?: artsone 3076 2008.01.23 23:12
88 [Script] MEL - 조건 제어문 switch artsone 3140 2008.01.23 22:50
87 [Script] MEL - 조건 제어문 if artsone 3904 2008.01.21 01:23
86 [Script] Expression - rand 사진 첨부파일 artsone 2405 2008.01.20 23:43
85 [Rendering] [스크랩] Maya software render에서 그림자에도 motion blur적용하는 방법 사진 첨부파일 artsone 4700 2008.01.15 17:35