If not, please tell me of the correct forum.
(in case yes)
I was playing around in Blender this morning, and created this (Materialized and rendered in Omniverse Create because I know it better):
So I thought it would make a good first Add On for me to practice in Blender. I love the scripting window where as I do things in Blender, I can learn the Python behind it. This makes learning to use the API much easier.
My Question is:
- This is the code generated when you duplicate and move an object (I modified the x axis manually to 0). Is all this necessary to duplicate and move an object, or is there a shorter version for duplicate and set the y and z axis? I have to duplicate about 12 times, so if any of these parameters are optional that would be ideal.
bpy.ops.object.duplicate_move(OBJECT_OT_duplicate={âlinkedâ:False, âmodeâ:âTRANSLATIONâ},
TRANSFORM_OT_translate={âvalueâ:(0, 1.27, .4), âorient_axis_orthoâ:âXâ, âorient_typeâ:âGLOBALâ,
âorient_matrixâ:((1, 0, 0), (0, 1, 0), (0, 0, 1)), âorient_matrix_typeâ:âGLOBALâ, âconstraint_axisâ:(False, False, False),
âmirrorâ:False, âuse_proportional_editâ:False, âproportional_edit_falloffâ:âSMOOTHâ, âproportional_sizeâ:1, âuse_proportional_connectedâ:False,
âuse_proportional_projectedâ:False, âsnapâ:False, âsnap_elementsâ:{âINCREMENTâ}, âuse_snap_projectâ:False, âsnap_targetâ:âCLOSESTâ, âuse_snap_selfâ:True,
âuse_snap_editâ:True, âuse_snap_noneditâ:True, âuse_snap_selectableâ:False, âsnap_pointâ:(0, 0, 0), âsnap_alignâ:False, âsnap_normalâ:(0, 0, 0), âgpencil_strokesâ:False,
âcursor_transformâ:False, âtexture_spaceâ:False, âremove_on_cancelâ:False, âview2d_edge_panâ:False, ârelease_confirmâ:False, âuse_accurateâ:False, âuse_automerge_and_splitâ:False})
Thanks