
! script name: 3drender.d/rmreflectprop
! 3DTOPIC: assign surface reflection properties

!A
!A NAME:
!A
!A 	Remove Surface Reflection Properties
!A
!A DESCRIPTION:
!A
!A 	This script removes  reflectivity properties to be assigned to surfaces.
!A
!B INSTRUCTIONS:
!B
!B
!B

Stat=ChangeLabelStr("ScriptNameStatus","Function: remove reflection properties")

DIM Destination$[256]
DIM Answer$[256]


DeActivateUndo
Pick_surface:Stat=SetPickMask(WsPickSurfOnly)
Stat=SetPickMask(WsPickSurfOnly)
Stat=SetInputFormat("n4","")
Surface=PickEntity("PICK SURFACE")
IF ExitScript(Destination$) THEN Leave
IF NOT ValidGeometry(Surface) THEN Pick_surface
Stat=SetPickMask(WsPickGeometry)

Stat= SetSurfaceProp(Surface)

GOTO Pick_surface


Leave:!
Stat=SetPickMask(WsPickGeometry)
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
