Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

What code or command for translucency option on ghosted mode?

$
0
0

Hi,
@Helvetosaur

I have a button that runs the .py file from Mitch (referencing it from a D drive location)

what code needs to be added to offer a choice of translucency ?
At the moment…
I select object, I hit my button, code runs…
I choose ghosted ,
I wish to choose an amount of translucency, I bit more see through.

I need the next step to offer that.

How should I code the button after the reference line of :- ?

-_RunPythonScript "D:\RHINO 3D WORK AND ASSOC FILES\Plug-ins and Scripts\Helvetosaur setObjectDisplayMode makes a chosen object translucent all view and antidote\SetObjDisplayModeAllViewports.py

here is the .py file
SetObjDisplayModeAllViewports.py (1.8 KB)

and should anyone wish for this, here is the antidote ! for RMB
RemObjDisplayModeAllViewports.py (775 Bytes)

Maybe its best done with the code entirely in the button for what I ask ?

Steve

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4159

Latest Images

Trending Articles



Latest Images