본문 바로가기

Life Insight

(74)
스크립트 기본 이름설정 하는법 주석으로 이름을 지정하면 이름과 설명이 됩니다. developers.maxon.net/docs/Cinema4DPythonSDK/html/manuals/introduction/python_script_manager.html Python Script Manager — Cinema 4D SDK 23.110 documentation When an object, tag, shader, or even a parameter is dragged and dropped into the script manager, a place holder variable named as the element is created. Since this variable is assigned to nothing in the cu..
baseContainer에 대해 그냥 데이터 저장하는 객체인데 c4d에서 사용되는 객체입니다. 여기에 값을 저장해서 len도 찍을수 있고, 저장해서 다른 함수로 넘길수도 있습니다. 저는 다른 스크립트로 값을 넘길때 baseContainer를 사용했습니다. developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d/BaseContainer/index.html?highlight=basecontainer c4d.BaseContainer — Cinema 4D SDK 23.110 documentation Once you’ve set a container value using one type you must neither try to access it using another type, nor o..
[c4dpython] How to use excel in c4d python C:\Program Files\MAXON\Cinema 4D R19\resource\modules\python\Python.win64.framework\Lib\site-packages unzip xlrd and xlsxwriter
[3dsMax python] Start up C:\Program Files\Autodesk\3ds Max 2018\scripts\Startup
[vscode] Use clipboard in VSCodeVim ctrl + p setting.json Add following line: "vim.useSystemClipboard": true p.s) My settings.json { "extensions.ignoreRecommendations": true, "workbench.colorTheme": "Community Material Theme High Contrast", "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.formatOnSave": true, "git.enableSmartCommit": true, "terminal.integrated.scrollback": 3000, "vim.hlsearch": true..
[jetbrains] Use clipboard in IdeaVim Click Open ~/.ideavimrc Add following line set clipboard+=unnamed :)
[c4dpython] Tag Tag 태그 가져오는 코드 tags = object.GetTags() 특정 태그만 가져오는 건 아래처럼 하면 됩니다. doc = c4d.documents.GetActiveDocument() op = doc.GetActiveObject() wt = op.GetTag(c4d.Tvertexmap)
[3dsMax python] Menu & Macroscript with pymxs Menu 맥스에 맨위에 메뉴바가 있는데 여기를 코드로 수정, 추가하는 법을 알아보려고 합니다. 기존메뉴에 추가/삭제 3ds Max 2021 버전에서는 런타임 글로벌 변수를 쉽게 만들수 있지만(rt.a = 'hi'), 그 하위 버전에는 아래 코드 처럼 만들어야 합니다.ㅜㅜ (한참 찾음) 그리고 매크로 스크립트를 생성해주고, 메뉴아이템을 만들어 줍니다. from pymxs import runtime as rt import re def myfunc(): print 'Hello' rt.execute('global abcd') rt.globalVars.set('abcd', myfunc) # category, macroName, tooltip, text, function t = rt.macros.new('test'..