Light ID??

Moderator: SecondMan

User avatar
laticrete
Posts: 10
Joined: Mon Aug 21, 2017 12:50 pm

Light ID??

#1

Post by laticrete » Tue Sep 05, 2017 12:13 am

Hello fusion community. Imagine I have scene with objects A, B and lights C, D. I want that my object A recieve light only from C. Are there in fusion any tools or maybe scripts for that task? Thanks

User avatar
JCB91
Fusioneer
Posts: 94
Joined: Thu Mar 10, 2016 1:46 am
Been thanked: 1 time

Re: Light ID??

#2

Post by JCB91 » Tue Sep 05, 2017 12:27 am

You can build this just with Merge3D nodes

Code: Select all

{
	Tools = ordered() {
		Shape3D1 = Shape3D {
			Inputs = {
				["Transform3DOp.Translate.Z"] = Input { Value = 2.86703380388247, },
				Shape = Input { Value = FuID { "SurfaceSphereInputs", }, },
				["MtlStdInputs.MaterialID"] = Input { Value = 1, },
				["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
				["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 2, },
			},
			ViewInfo = OperatorInfo { Pos = { -220, -1105.5, }, },
		},
		PointLight1 = LightPoint {
			Inputs = {
				Green = Input { Value = 0, },
				Blue = Input { Value = 0, },
			},
			ViewInfo = OperatorInfo { Pos = { -220, -1204.5, }, },
		},
		PointLight1_1 = LightPoint {
			Inputs = {
				["Transform3DOp.Translate.Y"] = Input { Value = 2.67248564253516, },
				Red = Input { Value = 0, },
				Blue = Input { Value = 0, },
			},
			ViewInfo = OperatorInfo { Pos = { -220, -973.5, }, },
		},
		Shape3D1_1 = Shape3D {
			Inputs = {
				["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 1, },
				["Transform3DOp.Translate.X"] = Input { Value = -2.09404551644488, },
				["Transform3DOp.Translate.Z"] = Input { Value = 0.632915617059224, },
				Shape = Input { Value = FuID { "SurfaceCubeInputs", }, },
				["MtlStdInputs.MaterialID"] = Input { Value = 1, },
				["SurfaceSphereInputs.ObjectID.ObjectID"] = Input { Value = 2, },
				["SurfaceCubeInputs.ObjectID.ObjectID"] = Input { Value = 3, },
			},
			ViewInfo = OperatorInfo { Pos = { -220, -907.5, }, },
		},
		Merge3D1 = Merge3D {
			Inputs = {
				SceneInput1 = Input {
					SourceOp = "PointLight1",
					Source = "Output",
				},
				SceneInput2 = Input {
					SourceOp = "Shape3D1",
					Source = "Output",
				},
				SceneInput3 = Input {
					SourceOp = "PointLight1_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { -55, -1171.5, }, },
		},
		Merge3D1_1 = Merge3D {
			Inputs = {
				SceneInput1 = Input {
					SourceOp = "PointLight1_1",
					Source = "Output",
				},
				SceneInput2 = Input {
					SourceOp = "Shape3D1_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { -55, -940.5, }, },
		},
		Merge3D2 = Merge3D {
			CtrlWZoom = false,
			Inputs = {
				SceneInput1 = Input {
					SourceOp = "Merge3D1",
					Source = "Output",
				},
				SceneInput2 = Input {
					SourceOp = "Merge3D1_1",
					Source = "Output",
				},
			},
			ViewInfo = OperatorInfo { Pos = { 165, -1039.5, }, },
		},
	},
}

User avatar
laticrete
Posts: 10
Joined: Mon Aug 21, 2017 12:50 pm

Re: Light ID??

#3

Post by laticrete » Tue Sep 05, 2017 12:35 am

thank u for quick responce) but i'm newbie in fusion so where i need to put this code?

User avatar
JCB91
Fusioneer
Posts: 94
Joined: Thu Mar 10, 2016 1:46 am
Been thanked: 1 time

Re: Light ID??

#4

Post by JCB91 » Tue Sep 05, 2017 12:42 am

You just paste it into the Fusion Flow view

User avatar
laticrete
Posts: 10
Joined: Mon Aug 21, 2017 12:50 pm

Re: Light ID??

#5

Post by laticrete » Tue Sep 05, 2017 12:52 am

you made my day) thank u!