ZBrushCentral

Transparency script/what is wrong?

Hi dear experts.
I wrote the following script to ease the transparency:
I put it into the ZPlugs of the ZData folder all right.


[ISubPalette,Zplugin:More Plugs]
[IButton,"Zplugin:More Plugs:Transparent ",“Hotkey for Transparent”,
[IReset,2.0]
[IFreeze,
[ISet,Picker:Z,-1000]
[IColorSet,5,4,4]
[IPress,Color:FillLayer]
]
[IFreeze,
[IPress,Material:ToyPlastic]
]
[IPress,Layer:Create]
[IPress,Layer:Create]
[IUnPress,Render:Flatten]
[IColorSet,225,178,178]
[ISet,Material:Modifiers:Transparency,100]
[IPress,Tool:Import]
],SHIFT+‘N’]
/End of ZScript/


:rolleyes: But it needs to be opened within the scripts menu, not automatically starting upon pressing “shift+N” as requested.

Please correct me.
I want it without initiating and the “play” button below the canvas.
Just Shift+N to get as far as the importing window at the very end!:stuck_out_tongue:

Anatom.

Hi Anatom, :slight_smile:

This should do it:

[ISubPalette,Zplugin:More Plugs]
[IButton,"Zplugin:More Plugs:Transparent ","Hotkey for Transparent",
[IFreeze,
[ISet,Picker:Z,-1000]
[IColorSet,5,4,4]
[IPress,Color:FillLayer]
[IPress,Material:ToyPlastic]
[IPress,Layer:Create]
[IPress,Layer:Create]
[IUnPress,Render:Flatten]
[IColorSet,225,178,178]
[ISet,Material:Modifiers:Transparency,100]
]
[IPress,Tool:Import]
,,,SHIFT+'N']

EDIT: You should put the text file in your ZStartup\ZPlugs and load it from there using the ZScript>Load button. Once that’s done once - in order to create the .zsc file - , restart ZBrush and your hotkey will function.

You are great, Marcus!
Your variant worked smart!

Vanks so much!
:smiley:
Anatom