Jinwoo Choi
최진우 블로그
Jinwoo Choi
전체 방문자
오늘
어제
  • Category
    • Business Insight
      • 인사이트 OUT
      • 경영수업
      • 생각정리 READY
      • 회고 IN
      • 성과 및 업데이트
      • HR
      • 법인운영과 투자공부
      • News
      • Invest
      • Dev
      • Design
      • Marketing - branding
      • Marketing - performance
      • Business Develop
    • Dev
      • 코드와 개발 이야기
      • css
      • javascript
      • react, vue
      • go
      • cloud
      • linux
      • algorithm
      • python
      • VSCode
      • cinema4d
      • 3dsmax
      • git
      • 협업 툴 & 업무환경
      • mac
    • Culture Insight
      • 카페 로그
      • 롱블랙 로그
      • 국내 회사 공부
      • Brand
      • 디자인
      • 예술과 건축, 철학 그리고 공간
      • 클래식 이야기
      • Art
    • 기타
      • 낙서와 회고 (비공개)
      • 역사 메모
      • 영어 메모
      • 여행 로그
      • 신체 및 건강
    • 스토리
      • 개발자가 자동차에 관심을 가짐
      • 커리어

블로그 메뉴

  • About

인기 글

최근 댓글

최근 글

hELLO · Designed By pronist.
Jinwoo Choi

최진우 블로그

Dev/3dsmax

파이썬이 아닌 maxscript 소스

2022. 6. 17. 21:37
728x90

무슨 소스인지는 .. 기억이 안나고 그냥 바탕화면에 있길래 백업용으로 올려둠

 

transform 
위치 : pos (position을 줄인 단어입니다.)

회전 : rotation

크기 : scale

move 상대이동


mypot1 = teapot() --create a teapot
fn whendeleted = --define a callback function
(
local deletedobjects = callbacks.notificationParam()
format "Callback: %\n" deletedobjects
-- This will printevery object that was deleted.
-- By this point, the object isstillattached to it's parents
-- and is still in groups etc...
-- Nothing has been done to the nodeyet.
)
when mypot1 deleted id:#foo obj do --define a when construct
(
format "When Construct:%\n" obj
)
--unregisterany preDeletecallbacks
callbacks.removeScripts #selectedNodesPreDelete
--register the function as general callback
callbacks.addscript #selectedNodesPreDelete "whendeleted()"


-------------------
a = "Global String"
(
    b = "Local String"
    format "a1 = %\n" a
    format "b1 = %\n" b
)
format "a2 = %\n" a
format "b2 = %\n" b
format "%" "Happy\n"

print ("hello")
print "jinwoo"
format "%" "yellow\n"

format "helloooo\n"


array1 = #(1, 2)

array1[3] = 3
array1[5] = 4


format "%\n" array1 

format "-------------------\n"

a = #(1, 13, 5, 10, 6, 2, 2)
b = a
format "b = %\n" b
 
append a 7
format "b = %\n" b




mybox = box()
showProperties  mybox
myBox.transform
format "-------------------\n"

myNum = 1
myStr = ""
 
fn format_fn inpData =
(
    addStr = inpData + "입니다."
)
 
case myNum of 
(
    1: myStr = "1"
    2: myStr = "2"
    3: myStr = "3"
    4: myStr = "4"    
)
 
format "%\n" (format_fn  myStr)

---
링크

http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-C1F6495F-5831-4FC8-A00C-667C5F2EAE3-2063.htm,topicNumber=d28e694276,hash=WS3ED54CBA79FF2E3D-7A802F912B7835E9A3-4C7A

https://help.autodesk.com/view/3DSMAX/2018/ENU/?query=general%20event%20callback&userType=Developer

728x90
    'Dev/3dsmax' 카테고리의 다른 글
    • [3dsMax Python] GUI with PySide2
    • [3dsMax python] Start up
    • [3dsMax python] Menu & Macroscript with pymxs
    • [3dsMax python] Log
    Jinwoo Choi
    Jinwoo Choi
    Be Übermensch! 안녕하세요, 최진우입니다 :) 개발, 비지니스 인사이트 글을 가볍게 작성합니다. The journey is the reward.

    티스토리툴바