Sat Sep 05, 2020 12:40 pm
pdb.plug_in_map_object(img, pumLayer,
1, # Type of mapping (0=plane,1=sphere,2=box,3=cylinder)
0.5, 0.5, 2.0, # viewpoint
0.5, 0.5, 0.0, # object pos
1.0, 0.0, 0.0, # first axis
0.0, 1.0, 0.0, # 2nd axis
0.0, 0.0, 15.0, # axis rotation
0, # Type of lightsource (0=point,1=directional,2=none)
(255, 255, 255), # Lightsource color (r,g,b)
0.5, 0.5, 2, # light position
-1.0, -1.0, 1.0, # light direction
0.8, 0.5, 0.4, 0.0, 27.0, # material (amb, diff, refl, spec, high)
TRUE, # antialias
FALSE, # tile
FALSE, # new image
TRUE, # transparency
1.00, # Sphere/cylinder radius (only used when maptype=1 or 3)
0.5, 0.5, 0.5, # box size
1.00, # unused parameter Cylinder length
-1, # Box front face (set these to -1 if not used)
-1, # Box back face
-1, # Box top face
-1, # Box bottom face
-1, # Box left face
-1, # Box right face
-1, # Cylinder top face (unused parameter)
-1) # Cylinder bottom face (unused parameter)
Sat Sep 05, 2020 2:50 pm
pdb.plug_in_map_object(image, drawable,1,0.5,0.5,2.0,0.5,0.5,0.0,1.0,0.0,0.0,0.0,1.0,0.0,-1.5,70,45,2,(255,255,255),1.0,1.0,1.0,1.0,1.0,1.0,0.3,1,0.5,0,27,True,False,False,True,0.25,0.25,0.25,0.25,1.00,None,None,None,None,None,None,None,None)
Sat Sep 05, 2020 9:24 pm
Sat Sep 05, 2020 9:48 pm
Sun Sep 06, 2020 12:48 am
Graechan wrote:Pocholo Please post your pumpkin pattern or xcf file so I can run map object on it
pdb.plug_in_map_object(img, pumLayer,
1, # Type of mapping (0=plane,1=sphere,2=box,3=cylinder)
0.5, 0.5, 2.0, # viewpoint
0.5, 0.5, 0.0, # object pos
1.0, 0.0, 0.0, # first axis
0.0, 1.0, 0.0, # 2nd axis
0.0, 0.0, 20.0, # axis rotation
0, # Type of lightsource (0=point,1=directional,2=none)
(255, 255, 255), # Lightsource color (r,g,b)
0.5, 0.5, 2.0, # light position
-1.0, -1.0, 1.0, # light direction
0.80, 0.50, 0.40, 0.0, 27.0, # material (amb, diff, refl, spec, high)
True, # antialias
False, # tile
False, # new image
True, # transparency
0.25, # Sphere/cylinder radius (only used when maptype=1 or 3)
0.5, 0.5, 0.5, # box size
1.00, # unused parameter Cylinder length
None, # Box front face (set these to -1 if not used)
None, # Box back face
None, # Box top face
None, # Box bottom face
None, # Box left face
None, # Box right face
None, # Cylinder top face (unused parameter)
None) # Cylinder bottom face (unused parameter)
Sun Sep 06, 2020 1:51 am
Sun Sep 06, 2020 2:42 am
Pocholo wrote:The only difference a I see on the code is that some parameters were written in lowercase (True, False) and the last 8 parameters were written as None instead of -1.
Sun Sep 06, 2020 7:52 am