You are here

Example of map object

drawable but i need to set to -1. How this is posible ?

I used this for reference but didn't work:

(plug-in-map-object
1 ; Run Mode Interactive (0), non-interactive (1)
img ; Image
layer-one ; Drawable (Layer)
Form ; Map type 0=Plane 1=Sphere 2=Box 3=Cylinder
0.5 0.5 2 ; Position of viewpoint X ,Y ,Z
0.5 0.5 0 ; Object position X, Y, Z
1 0 0 ; First axis of object X, Y, Z
0 1 0 ; Second axis of object X, Y, Z
rotationx ; Rotat X
rotationy ; Rotat Y
rotationz ; Rotat Z
0 ; Type of light (0=point, 1=directional, 3=none)
lightcolor ; Light color R, G, B
-0.5 -0.5 2 ; Light position X, Y, Z
-1 -1 1 ; Light direction X, Y, Z
0.3 ; Material ambient intensity
1 ; Material diffuse intensity
0.5 ; Material diffuse reflectivity
0.5 ; Material specular reflectivity
hilight ; Material highlight note: it's expotential
TRUE ; Apply antialiasing TRUE/FALSE
FALSE ; Tile source image TRUE/FALSE
TRUE ; Create a new image TRUE/FALSE
transbg ; Make background transparent TRUE/FALSE
0.25 ; Sphere/cylinder radius (only used when maptype=1 or 3)
0.5 0.5 0.5 ; Box X, Y, Z size
0.8 ; Cylinder length
-1 -1 -1 ; Box front, back, top face
-1 -1 -1 ; Box bottom, left, right face
-1 -1 ; Cylinder top, bottom face
)))

Only need the example of code in python.
Thanks for the help and sorry for my English isn't my native language

this is a example, if someone need it sometime


pdb.plug_in_map_object(img, drawable, 1,
0.5, 0.5, 2,
0.5, 0.5, 1.5,
1, 0, 0,
0, 1, 0,
0, 0, 0,
1, (255, 255, 255),
-0.5, -0.5, 2,
-1, -1, 1,
0.3, 1.2, 0.7, 0, 27,
TRUE,
FALSE,
FALSE,
TRUE,
0.05,
0.5, 0.5, 0.5,
1,
drawable,
drawable,
drawable,
drawable,
drawable,
drawable,
drawable,
drawable)

Thanks, I solved it

Example of map object

I would recommend that you do NOT call the plug-in with the "create new image" option. If you need a new image, first copy your layer to a new image and the run the plug-in on the new image.

Subscribe to Comments for "Example of map object"