It didn’t work unfortunately. This seems trickier than it looks.
I tried bMap = bitmap filename: "C:\\Program Files (x86)\\Common Files\\Autodesk Shared\\Materials\\Textures\\3\\Mats\\american_cherry.png"
and got
– Error occurred in anonymous codeblock; filename: ; position: 249; line: 2
– Argument count error: bitmap wanted 2, got 0
I tried this:
mAtdskBM = getClassInstances Autodesk_Map
for m in mAtdskBM do
(
show m.Parameters_Source
)
Where there was a path set, I got this
Map #13:Autodesk Bitmap
No Info Found on: BitMap:3\Mats\124.png
And where there was already no path, which is what I want to achieve in this particular case (some other time, I might however want to set a path)
Map #5:Autodesk Bitmap
No Info Found on: undefined
So it seems to me that the path is already part of .Parameters_Source
Now, could it be that I need to set the property of .Parameters_Source?
I tried setProperty m.Parameters_Source Undefined
and got Argument count error: setProperty wanted 3, got 2
So I tried setProperty m.Parameters_Source "Filename:" Undefined
and got Unknown property: "Filename:" in BitMap:3\Mats\124.png
- I am not getting the properties right.
Unknown property: "Filename" in BitMap:3\Mats\124.png
(without the colon) and got Unable to convert: undefined to type: FileName
¯\_(ツ)_/¯