VRED VR Clipping Plane Tool / Module Help

bpuent
Explorer
Explorer

VRED VR Clipping Plane Tool / Module Help

bpuent
Explorer
Explorer

Hi,

 

I'm currently running VRED 2023 Pro and I am trying to figure out how to add the VR Clipping Plane Tool.  I've seen some posts on the forum where in their Script drop down menu they show a VRClippingModule listed.  I have no such option.  Can anyone tell me how to activate it or tell me how to install it?

 

Thank you,

-BP

 

clip_plane_module.png

0 Likes
Reply
Accepted solutions (2)
689 Views
5 Replies
Replies (5)

TillmannDorsch
Alumni
Alumni
Accepted solution

Hi @bpuent 

This video tutorial explains well how to customize the VR menu and add your own Python scripts:
https://help.autodesk.com/view/VREDPRODUCTS/2023/ENU/?guid=VRED_Tutorials_Python_Tutorials_11Tutoria...


In your case the Python script might look like this:

# Function to initialize and active the Clipping Module

def clippingEnabled():

print("Enable Clipping")

Clipping = enableClippingPlane(true)

 

# Function to disable the Clipping Module

def clippingDisabled():

print("Disable Clipping")

Clipping = enableClippingPlane(false)

 

# Create the tool, set its name and connect to the on and off state

VRClippingPlane = vrImmersiveUiService.createTool("Clipping")

VRClippingPlane.setText("Clipping")

VRClippingPlane.setCheckable(True)

VRClippingPlane.signal().checked.connect(clippingEnabled)

VRClippingPlane.signal().unchecked.connect(clippingDisabled)


Tillmann Dorsch
Product Owner for Visualization
0 Likes

TillmannDorsch
Alumni
Alumni
Accepted solution
0 Likes

Ihor_Skoda_Design
Participant
Participant

Hi,


I've created a custom clipping plane (vrdClipPlaneNode) according to example "clipPlane.py". I wonder if is there a possibility to control its color via Python like it is done in vrClippingModule (Interaction > Clipping > Visualisation)?


Thanks in advance.

0 Likes

Ihor_Skoda_Design
Participant
Participant

Hi,


I've created a custom clipping plane (vrdClipPlaneNode) according to example "clipPlane.py". I wonder if is there a possibility to control its color via Python like it is done in vrClippingModule (Interaction > Clipping > Visualisation)?


Thanks in advance.

0 Likes

Christian_Garimberti
Advisor
Advisor

Hi, a vrdClipPlaneNode is not the same of the clipping module.

It has no parameters, just a plane to cut the visibility of child nodes.

To use and manage the Clipping tool you have to use the vrClippingModule (Api V1)

 

Best

Chris

 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

0 Likes