1
[Max] I need help! / Re: search for CoronaSun via maxscript?
« on: 2020-11-28, 19:03:59 »
A little late, but thank you very much, works fine!
Cheers!
Cheers!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
on MPBTN_Environment picked texmap do
(
try
(
renderers.current.bg_texmap = texmap
if (classof texmap == CoronaBitmap) == true then
(
print "Corona Bitmap"
)
if (classof texmap == Bitmaptexture) == true then
(
print "Bitmap"
)
texmappath = texmap.filename
texmappath2 = pathConfig.stripPathToLeaf texmappath
MPBTN_Environment.text = texmappath2
) catch()
for bmp in getClassInstances bitmapTexture do (
bmp.coords.blur = 0.0
)
-- Error occurred in anonymous codeblock; filename: C:\Users\workstation\Documents\3dsMax\downloads\Light Select.mzp; position: 8687; line: 332
-- MAXScript Rollout Handler Exception:
-- Runtime error: replace end out of range: 8
-- MAXScript callstack:
-- thread data: threadID:2476
-- ------------------------------------------------------
-- [stack level: 0]
-- In plus.pressed(); filename: C:\Users\workstation\Documents\3dsMax\downloads\Light Select.mzp; position: 8688; line: 332
-- member of: Rollout:add_Corona_mask
-- Locals:
-- plusLights: #($CoronaLight:CoronaLight003 @ [39.252331,-60.571831,0.000000])
-- tempName: undefined
-- sel: 1
-- id: 1
-- seltxt: "LSE_Top"
-- temp: ReferenceTarget:CShading_LightSelect
-- CurrentNodes: #()
-- Externals:
-- UpdateElements: Global:UpdateElements : UpdateElements()
-- lbx7: RolloutControl:lbx7 in rollout:add_Corona_mask : ListBoxControl:lbx7
-- allLightsNames: Global:allLightsNames : #("CoronaLight003")
-- lElemNames: Global:lElemNames : #("LSE_Top", "Lselect_Env")
-- allGeoNames: Global:allGeoNames : #()
-- RemoveLights: Global:RemoveLights : RemoveLights()
-- lbx1: RolloutControl:lbx1 in rollout:add_Corona_mask : ListBoxControl:lbx1
-- lbx10: RolloutControl:lbx10 in rollout:add_Corona_mask : ListBoxControl:lbx10
-- owner: Rollout:add_Corona_mask
-- getUnassignedLights: Global:getUnassignedLights : getUnassignedLights()
-- getUnassignedGeo: Global:getUnassignedGeo : getUnassignedGeo()
-- re: Global:re : <MixinInterface:RenderElementMgr>
-- add_Corona_mask: Rollout:add_Corona_mask
-- findReElement: Global:findReElement : findReElement()
-- chk1: RolloutControl:chk1 in rollout:add_Corona_mask : CheckBoxControl:chk1
-- ------------------------------------------------------
-- [stack level: 1]
-- called from top-level
I test using sphere dome mesh with corona light material and hdri inside works perfectly and you can use lightmix, but the problem is you only see the background of 1 dome, cause on lightmix if you turnoff the dome light mesh u see BLACK so u can have several domes but only one is visible other ones just light the scene