如何隐藏Blender中干扰视图的3D游标?
I totally get how that weird red-and-white lifebuoy-looking cursor can ruin the mood when you're framing a dark, immersive scene—super frustrating! You were on the right track with using a shortcut to shunt it off-screen, but there's a small correction needed: wm.context_set_enum is for setting enum-style properties (like dropdown menu options), while cursor location is a numeric coordinate value, so we need to use wm.context_set_value instead. Here's the full step-by-step to get this working:
Step 1: Open the Keymap Preferences
- Hit
Edit > Preferences(or use the shortcutCtrl+,) to pull up the preferences window - Switch to the
Keymaptab
Step 2: Create Your Custom Shortcut
- In the search bar, type
wm.context_set_valueto locate the correct operator - Right-click the operator and select
Add Newto create a new shortcut entry - In the
Context Attributefield, paste this:space_data.cursor_location - In the
Valuefield, enter your off-screen coordinates—something like(0.0, 0.0, 1000.0)works great (make sure to include the decimal points, Blender's API is picky about numeric types here) - Click
Assignand set a shortcut key that doesn't conflict with your existing workflow (I like usingShift+Alt+Csince the defaultShift+Chandles cursor origin reset)
Step 3: Test It Out
- Head back to your 3D Viewport, press your new shortcut, and the cursor will jump instantly to that far-off coordinate, completely out of your scene's frame
- If you ever need the cursor back, just use the default
Shift+Cand selectCursor to World Originto reset it quickly
Quick Note on the Operator Mix-Up
The reason
wm.context_set_enumwasn't working is that it's designed exclusively for enum-type properties—things like selecting a render engine, switching viewport shading modes, or picking transform orientations. Cursor location is a 3D float vector, sowm.context_set_valueis the right tool for assigning that kind of numeric data.
内容的提问来源于stack exchange,提问作者foole0093

