• 카테고리

    질문 & 답변
  • 세부 분야

    CAD · 3D 모델링

  • 해결 여부

    미해결

자꾸 질문드려서 죄송합니다.

22.06.08 10:45 작성 조회수 331

0

지금까지 잘 쫒아오면서 인강 듣고 있는데요.

14강 이후 라인그래프 단축키로 그리는거 까지 수강했습니다.

그런데 갑자기 vscode와 블렌더 연동이 안되기 시작합니다.

Read prefs: C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\config\userpref.blend 등록 Exception in module register(): C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MyTool\__init__.py Traceback (most recent call last): File "c:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 386, in enable mod.register() File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MyTool\__init__.py", line 13, in register from .menu import reg_menus ImportError: cannot import name 'reg_menus' from 'MyTool.menu' (C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MyTool\menu\__init__.py) [{'load_dir': 'c:\\Users\\user\\Desktop\\MyTool', 'module_name': 'MyTool'}] Traceback (most recent call last): File "c:\Users\user\.vscode\extensions\jacqueslucke.blender-development-0.0.16\pythonFiles\launch.py", line 14, in <module> blender_vscode.startup( File "c:\Users\user\.vscode\extensions\jacqueslucke.blender-development-0.0.16\pythonFiles\include\blender_vscode\__init__.py", line 14, in startup path_mappings = load_addons.setup_addon_links(addons_to_load) File "c:\Users\user\.vscode\extensions\jacqueslucke.blender-development-0.0.16\pythonFiles\include\blender_vscode\load_addons.py", line 23, in setup_addon_links create_link_in_user_addon_directory(source_path, load_path) File "c:\Users\user\.vscode\extensions\jacqueslucke.blender-development-0.0.16\pythonFiles\include\blender_vscode\load_addons.py", line 46, in create_link_in_user_addon_directory _winapi.CreateJunction(str(directory), str(link_path)) FileNotFoundError: [WinError 2] 지정된 파일을 찾을 수 없습니다 Saved session recovery to 'C:\Users\user\AppData\Local\Temp\quit.blend'

 

이런식으로 메세지가 뜨면서 블렌더 실행하면 바로 종료가 됩니다.

vscode를 재 설치를 해보고 블렌더도 재 설치를 하는데도 연동이 계속 안됩니다.

 

답변 부탁드립니다.

답변 3

·

답변을 작성해보세요.

0

성용석님의 프로필

성용석

질문자

2022.06.13

cvs 연동 강의 듣고 있는 중인데..이전까진 작동이 되더라도 디버그 콘솔과 출력에 "등록" "해제" 출력되지 않았습니다.

 

cvs 강의대로 블렌더 스크립터에서 작성을 해봤는데

Python 스크립트 실패, 시스템 콘솔에서 메시지를 확인하십시오

 

이런 메세지가 뜨네요.. 아무리 봐도 두개 연동 안되는게 스크립터 설정 오류 인듯 합니다.

 

vs code에선 컨트롤 쉬프트 +P  파이썬 인터프리터를 파이썬 3.10.4 64-bit로 사용하고 있습니다.

0

성용석님의 프로필

성용석

질문자

2022.06.13

vs code에서 cntl + shift+P로는 여전히 블렌더 실행이 되질 않습니다.

 

그러나 vs code 작성된 스크립트를 실행하고 블렌더 실행은 안되는데

 

수동으로 블렌더를 실행하면 옵션패널 부터 add on 단축키 다 작동됩니다.

 

참 신기하네요..

관리자 모드로 실행하신 거 맞나요?

성용석님의 프로필

성용석

질문자

2022.06.13

네 관리자 모드로 늘 실행합니다. 

0

첨부하여 주신 오류메세지 중에서 reg_menus ImportError: cannot import name 'reg_menus' from 'MyTool.menu'

이부분이 보입니다.MyTool.menu에서 reg_menus부분에

reg_menu 로 s를 빼고 작성하신 것이 아닌가 생각됩니다.

 

 

 

성용석님의 프로필

성용석

질문자

2022.06.10

오타는 없습니다. 전부 삭제하고 폴더까지 삭제하고 재설치 하는데도 안되는거 보면..뭔가 시스템이 꼬인거 같네요.