Script for add layer on

Hello,

I'm not a developper but I'm little familiar with php langage and I hope I could understand DAZ scripting because my request is not difficult (I believe) and it could give me great result..

I would like to modify an image on shader (ex bump image) like we can manually with Layered Image Editor. Only change one layer, don't touch to others.

So How to get the current layers properties and modified them ?

I would like to add/remove and/or replace a line :

For example replace bump2.jpg by bump3.jpg

Or add another bump layer in one image-library set

Replace that :

"image_library" : [

{

"id" : "bump",

"name" : "bump",

"map_size" : [ 1600, 1600 ],

"map_gamma" : 1,

"map" : [

{

"url" : "/url-link/bump.jpg",

"label" : "bump.jpg",

"color" : [ 0, 0, 0 ],

"transparency" : 1,

"invert" : false,

"rotation" : 0,

"xmirror" : false,

"ymirror" : false,

"xscale" : 1,

"yscale" : 1,

"xoffset" : 0,

"yoffset" : 0,

"operation" : "alpha_blend"

},

{

"url" : "/url-link/bump2.jpg",

"label" : "bump2",

"color" : [ 0, 0, 0 ],

"transparency" : 0.3,

"invert" : false,

"rotation" : 0,

"xmirror" : false,

"ymirror" : false,

"xscale" : 1,

"yscale" : 1,

"xoffset" : 0,

"yoffset" : 0,

"operation" : "alpha_blend"

}

]

},

by

"image_library" : [

{

"id" : "bump",

"name" : "bump",

"map_size" : [ 1600, 1600 ],

"map_gamma" : 1,

"map" : [

{

"url" : "/url-link/bump.jpg",

"label" : "bump.jpg",

"color" : [ 0, 0, 0 ],

"transparency" : 1,

"invert" : false,

"rotation" : 0,

"xmirror" : false,

"ymirror" : false,

"xscale" : 1,

"yscale" : 1,

"xoffset" : 0,

"yoffset" : 0,

"operation" : "alpha_blend"

},

{

"url" : "/url-link/bump3.jpg",

"label" : "bump3",

"color" : [ 0, 0, 0 ],

"transparency" : 0.3,

"invert" : false,

"rotation" : 0,

"xmirror" : false,

"ymirror" : false,

"xscale" : 1,

"yscale" : 1,

"xoffset" : 0,

"yoffset" : 0,

"operation" : "alpha_blend"

},

{

"url" : "/url-link/bump4.jpg",

"label" : "bump4",

"color" : [ 0, 0, 0 ],

"transparency" : 0.3,

"invert" : false,

"rotation" : 0,

"xmirror" : false,

"ymirror" : false,

"xscale" : 1,

"yscale" : 1,

"xoffset" : 0,

"yoffset" : 0,

"operation" : "alpha_blend"

}

]

},

 Please give me help ! :)))))

Comments

Sign In or Register to comment.