ZBrushCentral

can you apply hotkeys to the poly frame "line and fill" buttons somehow?

title pretty much says it all.
I keep trying it by traditional means of assigning a hotkey, but can’t manage it.
is there another way of going about it?

This was a bit more complicated than I expected it to be, but here ya go :slight_smile:

Toggle_Polyframe_Fill.zsc
Toggle_Polyframe_Line.zsc

woo-hoo! thank you so much!
I just checked out your website and all the cool things you’ve come up with. totally gonna employ quite a few of them, too!

also- I recently made an inquiry in the scripting help section. I’m willing to bet if anyone can answer the call, it’d be you.
please take a look when you have a chance.

http://www.zbrushcentral.com/showthread.php?211737-Can-this-menu-be-made-with-scripting-or-as-a-plug-in

…and thanks again!!!

I hate to say so, but I can’t get those macros to work. when I put them in the Misc macro folder, they never show up in the macro palette upon start of zbrush. likewise, if I put them inter own dedicated folders, like you normally do when recording a new macro.
I can’t help but feel like I’m missing something simple… I’ve made a ton of different macros for various uses, so I can’t imagine what I’m doing wrong!

Are you on zbrush 2018?

yessir, I am.

You are correct, it looks like the Macro folder has different requirements that what I’m used to working with. Normally I don’t mess with the Macro palate much. I typically put stuff in the Zplugin palate. Anyway, I updated those dropbox links with Zplugin versions so they should work now.

Just copy them here > C:\Program Files\Pixologic\ZBrush 2018\ZStartup\ZPlugs64
and nuke the old ones in your macro folder.

When you restart zbrush you should have a “E Misc” menu in your Zplugin palate and you can assign hotkeys to those new buttons as you normally would.

thanks a TON for looking into this!
I’ll put them in place tonight!

Unfortunately, these download-links for macros no more work (it gives a Dropbox “Error 404”)

If someone could re-share would be great!

Big thanks! :slight_smile:


EDIT: I have just redone these macros (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