Page MenuHome

scene.ray_cast ignore hide_viewport state of objects
Closed, ResolvedPublic

Description

System Information
Operating system: any
Graphics card: any

Blender Version
Broken: 2.8 (2019-28-02)
Worked: 2.79 / 2.8 earlyer

Short description of error
python scene_raycast ignore hide_viewport state of object

Exact steps for others to reproduce the error
Until now there was a trick to prevent object from being hit by ray cast by hiding them before casting and revert hidden state after.

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Mar 2 2019, 9:14 PM

Can you attach a .blend file the demonstrates the issue?

Step to repro:
Enable archipack addon, press render thumbs in addon prefs, wait 10-15 sec until done.
Draw / create a wall,
then try to draw a window/door (using button with the pencil) over the wall, ray_cast hit the hole, witch is hidden when ray cast occurs.

You have to provide a minimal example in that case. A simple .blend file with a script file that uses this functionally without the addon will do.
So we can simply open the blend file, hit run script and see the issue.

Never mind !
Will find workaround on my side.