Insert a bitmap into the Displace modifier

--How to insert a bitmap in the Displace modifier?
--below a failed attempt
--thanks anyway for the attention
-------------------------------------------------------

--insert Displace
modPanel.addModToSelection (Displace ()) ui:on

-- which script to use to insert the map with its dir?

---$.modifiers[#Displace].bitMap Bitmap filename: "D:\\maps\\Foglia_006_Displacement.jpg"-

$.modifiers[#Displace].strength = 1
$.modifiers[#Displace].maptype = 0
$.modifiers[#Displace].useMap = on

Thanks for your attention

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	displaceMod = Displace()
	modPanel.addModToSelection displaceMod ui:on
 
	map01Path = @"D:\\maps\\Foglia_006_Displacement.jpg"
	bmp01 = Bitmaptexture filename:map01Path	
	displaceMod.map = bmp01
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.