invalid value for property
I am currently trying to automate my PFlow set up, everything seems to work fine except when it comes to assigning an object to the mapping object operator.
In the 3ds Max reference it states that you can assign the mapping objects by passing a node array to it:
<Mapping_Object>.Mapping_From_Objects : node array
So my resulting code looks like this:
op8 = mapping_Object() op8.Mapping_Type = 1 op8.Static_Objects = true op8.Mapping_From_Objects = #($'Cloud')
I am passing an object as an array that I have called cloud, but I get an error stating 'Runtime error: invalid value for property'
Even if I try and just use a macro script from within the maxscript listener I receive an error too, unless I add the object manually and then remove it. Then the macro script will work for me.
$'Mapping Object 002'.Mapping_From_Objects = #($'Cloud')
If someone could shed some light on this, that would be much appreciated. Its driving me crazy at this point!