회원 로그인
|
언리얼 파이썬 - 현재 레벨의 모든 point/spotlight intensity 값 변경하기
:언리얼 파이썬
- 레벨에 있는 스팟, 포인트 라이트 intensity 값 한꺼번에 변경(수치값으로 곱하기, 나누기)
- 임시 방편으로 간단히 실행하기로..
- Cmd에서 py "경로/파일명.py"
- 무버블 일 때만 변경됨
- 스태틱 라이트들을 강제로 무버블로 변경하여 값 변경해야 할까?
# -*- coding: utf-8 -*- # set Point/Spot Light intensity value # author : sipark # date : 2019.6.21 # file name : setLightIntensity.py # Cmd : py "path\fileName.py" import unreal VALUE = 100 MULTIPLY = 0 #True/False def setLightIntensityValue(VALUE, MULTIPLY): #test_level_path = '/Game/StarterContent/Maps/Minimal_Default.Minimal_Default' currentLevel = unreal.EditorLevelLibrary.get_editor_world() getPointLights = unreal.GameplayStatics.get_all_actors_of_class(currentLevel, unreal.PointLight) getSpotLights = unreal.GameplayStatics.get_all_actors_of_class(currentLevel, unreal.SpotLight) #pointlight if getPointLights != []: for gPL in getPointLights: if MULTIPLY: gPL.light_component.set_intensity(gPL.light_component.intensity * VALUE) else: gPL.light_component.set_intensity(gPL.light_component.intensity / VALUE) #spotlight if getSpotLights != []: for gSL in getSpotLights: if MULTIPLY: gSL.light_component.set_intensity(gSL.light_component.intensity * VALUE) else: gSL.light_component.set_intensity(gSL.light_component.intensity / VALUE) setLightIntensityValue(VALUE, MULTIPLY)
댓글 0개
| 엮인글 0개
137개(2/7페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
UE4 비디오 튜토리얼 | 푸딩뱃살 | 6184 | 2021.03.23 16:18 | |
언리얼 엔진 릴리즈 노트 | 푸딩뱃살 | 8310 | 2017.11.05 16:37 | |
115 | [언리얼] FBX 버전 | 푸딩뱃살 | 539 | 2019.08.20 11:56 |
114 | [언리얼] 최대 폴리곤 수는? | 푸딩뱃살 | 662 | 2019.08.05 14:03 |
113 | [정보] 언리얼 블로그 - 버추얼 프로덕션: 퍼포먼스 캡처의 대중화 | 푸딩뱃살 | 858 | 2019.08.03 16:13 |
112 | [언리얼] FBX 임포트 충돌 | 푸딩뱃살 | 654 | 2019.08.01 19:46 |
111 | [개발] 언리얼엔진 Windows 빌드 | 푸딩뱃살 | 735 | 2019.07.25 17:18 |
110 | [개발] UnrealEngine 소스 코드 다운로드 | 푸딩뱃살 | 942 | 2019.07.24 10:19 |
109 | [언리얼] Skeleton 개수 제한 | 푸딩뱃살 | 883 | 2019.07.19 18:44 |
108 | [스크립트] 현재 레벨의 모든 point/spotlight intensity 값 변경하기 | 푸딩뱃살 | 660 | 2019.06.21 14:25 |
>> | [스크립트] 언리얼 파이썬 - 현재 레벨의 모든 point/spotlight intensity 값 변경 | 푸딩뱃살 | 707 | 2019.06.21 12:43 |
106 | [정보] 언리얼 서밋 2019 다시보기 | 푸딩뱃살 | 828 | 2019.06.21 10:03 |
105 | [플러그인] Python을 사용한 에디터 스크립팅 | 푸딩뱃살 | 791 | 2019.05.20 20:55 |
104 | [블루프린트] Spawn Actor from Class | 푸딩뱃살 | 876 | 2019.05.13 00:06 |
103 | [개발] iOS 앱 빌드 | 푸딩뱃살 | 735 | 2019.04.06 22:56 |
102 | [정보] GDC 2019 언리얼 새로운 기능 소개 | 푸딩뱃살 | 834 | 2019.03.25 14:55 |
101 | [개발] ARKit (FaceARSample) | 푸딩뱃살 | 978 | 2019.03.21 11:23 |
100 | [정보] 디지털 휴먼: 실시간 페이셜 퍼포먼스 비법을 파헤친 3Lateral | 푸딩뱃살 | 1014 | 2019.02.19 14:33 |
99 | [정보] FREE Unreal Engine 4 Reactive Dynamic Water V3 | 푸딩뱃살 | 974 | 2019.01.28 21:15 |
98 | [언리얼] 경로가 다른 애셋 리임포트 | 푸딩뱃살 | 877 | 2019.01.08 15:33 |
97 | [언리얼] 콜리전 (Collision) | 푸딩뱃살 | 749 | 2019.01.02 12:34 |
96 | [정보] (Digital Domain) Crafting the Ultimate Digital Hum | 푸딩뱃살 | 1081 | 2018.12.28 13:59 |