ZBrushCentral

Mask poygroup under the mouse

Can someone help with a script that masks polygroup under the mouse.
Nicks Tools Mask Pg Under Cursor has that feature and its really helpful but it fails when mesh is partially hidden, because it is a macro that automates the steps of hiding and masking.
Is there a way around hidden mesh problem.

Thanks
Mariusz

I just created a button similar to the description, please try it

[IButton,???,"Mask Shell Group",
		[IPress,Brush:SelectRect]

		[If,[IGetStatus,Tool:Visibility:Grow All],
			[IFreeze,
			[IPress,Tool:Masking:Clear][MergeUndo]
			[IPress,Transform:Move][MergeUndo]
			[IKeyPress,CTRL, [CanvasClick,[MouseHPos],[MouseVPos]]][MergeUndo]
			[IPress,Tool:Masking:Inverse][MergeUndo]
			[IPress,Transform:Draw Pointer]
			]
		,

		// [IPress,Tool:Masking:Clear][MergeUndo]

		[If,[IGet,Tool:Masking:ViewMask],
			[IFreeze,
			[IPress,Tool:Masking:Inverse][MergeUndo]			
			[IKeyPress, SHIFT + CTRL, [CanvasClick,[MouseHPos],[MouseVPos]]][MergeUndo]				
			[IPress,Tool:Masking:MaskAll][MergeUndo]		
			[IPress,Tool:Visibility:ShowPt][MergeUndo]		
			[IPress,Tool:Masking:Inverse]
			]
		,
			[IFreeze,
			[IKeyPress, SHIFT + CTRL, [CanvasClick,[MouseHPos],[MouseVPos]]][MergeUndo]
			[IPress,Tool:Masking:MaskAll][MergeUndo]
			[IPress,Tool:Visibility:Grow All][MergeUndo]
			[IPress,Tool:Visibility:ShowPt][MergeUndo]
			[IPress,Tool:Masking:Inverse]//[MergeUndo]
			]
		]



	]
,,1,,,]

Yeah, thats amazing, sorry for a late reply needed to brush up on basics of zscripts and do some tests. Love that it masks everything but the cllicked and if using lasso select it doesnt do loop selections. This should be a zbrush default avoiding a ton of clicks in a day. Just great.
Many thanks for this TONHAI25

1 Like