Gradient ramp map blur and blur_offset value set

Hello,

I am trying to all scene gradient ramp map blur value = 1 and blur_offset value = 0
but getting error
can anyone correct the script

THANKS

(
fn gradientBlur class:Gradient_Ramp =
(
	if selection.count != 0 do
	(
	node = getClassInstances class
	if node.count > 0 do
		for map in node do
			map.coords.blur = 1.0
	)
	(
	node = getClassInstances class
	if node.count > 0 do
		for map in node do
			map.coords.Blur_Offset = 0
	)
)
gradientBlur()
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
SimonBourgeois's picture

Try this:

(
fn gradientBlur class:Gradient_Ramp =
(
	if selection.count != 0 do
	(
	node = getClassInstances class
	if node.count > 0 do
		for map in node do
		(
		map.Coordinates.blur = 1.0
		map.Coordinates.Blur_Offset = 0
		)
	)
)
gradientBlur()
)
sketchupmaster's picture

Thank you so much . . . . :)

Thank you so much . . . . :)

Thanks,
Sketchup Master

SimonBourgeois's picture

You're welcome

Glad i could help :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.