How do I create a script to move objects by a certain number of pixels in any direction?

EightiesIsEnoughEightiesIsEnough Posts: 1,110
edited August 27 in Daz Studio Discussion

I am wondering if there is any code I could rely on to create a script that can allow me to move objects, such as street sections, by a certain number of pixels to the left or right on an X axis, or forwards or backwards on a Z axis, and rotate by a certain number of degrees.  I don't Intend to use it for Y axis at this point, unless I decide to use hills.

I know there is a script for moving street sections as part of the Streets package in the Shop, but it only moves the street sections from that set. But I would prefer to move street sections I create in Blender myself, so I think I should consider making my own script for that purpose.

Post edited by EightiesIsEnough on

Comments

  • GordigGordig Posts: 10,056

    Pixels aren't a meaningful unit of measure in 3D space, because that will depend on monitor resolution, camera placement and so on.

  • Richard HaseltineRichard Haseltine Posts: 100,941

    Daz Studio works in cm in the scene space - pixels are a screen value and, render size aside, not used in DS - the physical distance from the camera and render size would determine how many cm equally one pixel. Did you mean a script to move by cm, or are you wanting something that could postiion relative to the render 9which would require some fiddly trigonometry

Sign In or Register to comment.