[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question about Python syntax

On 22Aug2019 09:34, Paul St George <email at paulstgeorge.com> wrote:
>I have the Python API for the Map Value Node here: <https://docs.blender.org/api/current/bpy.types.CompositorNodeMapValue.html>.
>All well and good. Now I just want to write a simple line of code such as:
>import bpy
>AttributeError: type object 'CompositorNodeMapValue' has no attribute 

CompositorNodeMapValue is a class. All the attributes described are for 
instances of the class. So you need to do something that _gives_ you an 
instance of CompositorNodeMapValue. That instance should have a .max 

Cameron Simpson <cs at cskk.id.au>