상세 컨텐츠

본문 제목

MScriptUtil

Maya API/Maya_API

by hwano 2014. 1. 27. 15:29

본문

참고사이트

http://www.chadvernon.com/blog/resources/maya-api-programming/mscriptutil/

##############################################################

 

 

MScriptUtil is the cumbersome class we must use when using the Maya API with Python.

Since the Maya API is designed as a C++ library, it has many pointers and references that are passed into and returned from various functions.

Since Python has no pointers or references to simple types, we must use MScriptUtil when we encounter these in the Maya API. The documentation contains useful information about general usage of MScriptUtil, so I will not reproduce it here. 

 

What I will show are various code samples that demonstrate how to use MScriptUtil in various situations since at the time of this writing, the code examples for MScriptUtil are quite limited.  Luckily, I don’t need to use MScriptUtil often, but when I do encounter it, I will put a snippet on this page to build up a useful reference.

 

 

MScriptUtil 은 파이썬을 이용하여 Maya Api를 사용할대 필요한 성가신 클래스이다.

Maya Api는 C++ 라이브러리로 디자인되어있기 때문에 여러 함수들에서 포인터와 레퍼런스 참조로서 값을 주고 받는다.

 

파이썬에는 이러한 포인터와 레퍼런스 개념이 없기 때문에  MScriptUtil를 사용하게된다.

 

 

 

 

 

관련글 더보기