Wednesday, 3 September 2025

VsCode - auto path completion/autocompletion

The Problem: 

For a while it haunted me that my custom repos/packages weren't auto-completing, not ctrl+mouse hover to see what a function did.

 The Fix:

F1 > Preferences: Open Workspace Settings (JSON)

 

Ensure you have "settings", if not, add it.

Ensure you have "python.analysis.extraPaths" : ["your paths here"], if not, add it. 

    "settings": {
        "git.ignoreLimitWarning": true,
        "python.analysis.extraPaths": [
            "C:\\Users\\a_tav\\3D work and portfolio\\AT_autorig",
            "C:\\Users\\a_tav\\3D work and portfolio\\scripts",
            "C:\\Users\\a_tav\\3D work and portfolio"
        ],
        "python.analysis.autoImportCompletions": true,
        "python.analysis.completeFunctionParens": true,
        "python.analysis.useLibraryCodeForTypes": true,
        "editor.definitionLinkOpensInPeek": true,
        "files.associations": {
            "random": "cpp"
        },

 

Tuesday, 10 June 2025

Selecting a mesh selects the shape, not the transform

 Here's a weird one...

The Problem:

When I select a mesh/curve, it selects the shape - not the transform!

The Fix:

Turn off 'Enable Overrides' of the shape. Normally transforms are part of display layers, and when an object is added to a display layer, it links the display layer 'Display Type' to the objects 'Display Type'. However, adding a transform does not add the shape. Therefore, if you have a Display Layer set to reference, you may still be able to select a layer object's shape if 'Enabled overrides' on the shape is turned on and set to 'Normal'. 

Friday, 24 January 2025

Models grey in viewport

The Problem:

My models are grey in the Maya viewport, even though they have a material with colour assigned!

The Fix:

At the top of the viewport window...:

Shading > Use Default Material (uncheck)