Graechan wrote:
Pocholo Please post your pumpkin pattern or xcf file so I can run map object on it
Graechan, I got the Map object fixed and working with MareroQ sample from one of Tin Tran plugin "Planet_wire_frame_model.py".
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.
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)
This is the result using Map object and G'MIC:
![Image](http://gimpchat.com/files/6266_pm_Pumpkin.jpg)
Thank you anyway, you guys are being great in my coding learning journey.