Quote:
<< "Then I created script to achieve same thing. But do not get the same "look". ( using Invert Texture and Metal gloss )" >>
Hi Lar,
That is because you have used a custom file to create the texture effect. I don't think 'custom file' or the sub-menu texture styles (Bamboo Weave, Cross Step, etc, etc) are supported in OpusScript? The first SetTexture() parameter requires a keyword. (or a variable containing that keyword). Chris, Paul or DW may know some clever workaround if it is at all possible to read the custom file.
Secondly, in your sample pub, you say that the image disappears. That is because your pathname was incorrect and also your object name (in the organiser) is not script compatible. ......you have 'Image 3' -- when it should be 'Image_3'.
In your script,, try this code on your button...
//-------
ImageUsed = SYSTEM_PUBLICATION_DIR + "\\SetTexture1 Resource\\picture 111sz.jpg"
Image_3.SetTexture("Metal",true,false,ImageUsed,false)
//-------
<ImageUsed> is the pathname of the image file, not the filename of your custom file you're using for the actual effect.
Failing a script solution to achieve your effect, you could have two images. (one with your textured look, initially hidden and stacked on top of the other image).
Hope this helps!