Create the rotated cube base on upper left corner point

Hi there,

Does anyone know how to create the rotated cube, based on the point at upper left corner point, instead of center point?

Thanks!

omni.replicator.core.create.cube
(position: Union[ReplicatorItem, float, Tuple[float]] = None, 
scale: Union[ReplicatorItem, float, Tuple[float]] = None, 
pivot: Union[ReplicatorItem, Tuple[float]] = None, 
rotation: Union[ReplicatorItem, float, Tuple[float]] = None, 
look_at: Union[ReplicatorItem, str, Path, Tuple[float, float, float]] = None, 
look_at_up_axis: Union[ReplicatorItem, Tuple[float]] = None, 
semantics: List[Tuple[str, str]] = None, 
material: Union[ReplicatorItem, Prim] = None, 
visible: bool = True, as_mesh: bool = True, count: int = 1) → Node

Hello @lily.chen, I apologize we missed your question until now. The origin of a prim can be set using the pivot argument:

import omni.replicator.core as rep

rep.create.cube(pivot=(1, 1, 1), rotation=(-30, -30, 0))

image