ZBrushCentral

Shortcut for PolyFrame visibility but just for Lines OR Fill? (SOLVED)

Hi guys!

I know we can use SHIFT+F to toggle Polyframe visibility.

But, it’s possible to create a shortcut for just toggling the Lines? And other to toggle just the Fill?

Trying the CTRL+OPT and click just on that small area of button where you can read “Line” or “Fill” you finally get a new shortcut to toggle the entire PolyF button, and not the “Lines” or “Fill”

Thanks!

PD. I found this previous thread, but those macros-download links does not work. Will try to make a bump there, just in case…

In Preferences > Draw, there are two opacity sliders for the Poly Frame and Poly Fill that can be hotkeyed. I actually keep these on my UI for how often I like to adjust this.

1 Like

Thanks again for your quick reply, Spyndel! :slight_smile:

But then it comes a new question:

How you can create a shortcut to toggle PFrame opacity between 0 and 25? Or to toggle PFill opacity between 0 and 50?

(because if I click on those sliders with CTRL+ALT then I can define a shortcut to bring the slider itself just below my pointer, with is great, but is not exactly what I was looking for…)

THANKS!

I’m not aware of a way to do this without some sort of scripting or a macro. I’m not an expert in that area though, so you may want to head over to the Scripting Help Forum, and see if marcus_civis or one of the other scripting gurus can point you in the right direction.

[EDIT]
Actually, Marcus has already answered this question in this thread.

1 Like

Oh, great!!! :smiley:

That thread was overlooked when I did the search. Thank you so much again for your help, Spyndel. Tomorrow I will return to this topic (now I’m going to turn off my computer, it’s time to rest…)

I will leave here my two macros to do exactly what I was looking for (big thanks to Spyndel and Marcus):

To toggle just the LINES visibility on PolyFrame:

//ZBrush macro - save to ZBrush 2019.1\ZStartup\Macros\Misc\ folder

[IButton,???,"Toggle PF Line",
	[IShowActions,0]
	[IConfig,2019]
	[IPress,Transform: Pf]
	[Loop,1,
		[If,([IModGet,Transform: Pf]==0), // if Nothing
			[IModSet,Transform: Pf,1] // apply just Line
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==1), // if just Line
			[IModSet,Transform: Pf,0] // apply Nothing
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==2), // if just Fill
			[IModSet,Transform: Pf,3] // apply Line & Fill
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==3), // if Line & Fill
			[IModSet,Transform: Pf,2] // apply just Fill
			[LoopExit]
		]
	]    		
,,0.5] // half palette width button

To toggle just the FILL visibility on PolyFrame:

//ZBrush macro - save to ZBrush 2019.1\ZStartup\Macros\Misc\ folder

[IButton,???,"Toggle PF Fill",
	[IShowActions,0]
	[IConfig,2019]
	[IPress,Transform: Pf]
	[Loop,1,
		[If,([IModGet,Transform: Pf]==0), // if Nothing
			[IModSet,Transform: Pf,2] // apply just Fill
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==1), // if just Line
			[IModSet,Transform: Pf,3] // apply Line & Fill
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==2), // if just Fill
			[IModSet,Transform: Pf,0] // apply Nothing
			[LoopExit]
		]
		[If,([IModGet,Transform: Pf]==3), // if Line & Fill
			[IModSet,Transform: Pf,1] // apply just Line
			[LoopExit]
		]
	]    		
,,0.5] // half palette width button