I have a user library object (a group of contained objects) that is always created at the same coordinates, probably the x,y,z of the template that got added to the library. I have tried the following code in the dropscript to grab cursorinfo and change coordinates:
- treenode object = dropuserlibraryobject(node("..>object", c));
- Object newobject = object.as(Object);
- double mousex = cursorinfo(c,2,1,1); //find mouse x
- double mousey = cursorinfo(c,2,2,1); //find mouse y
- newobject.location.x = mousex;
- newobject.location.y = mousey;
This puts the object in a different location, but a long way off from where the cursor was. I have tried 1, 2, and 6 as the type of operation to similar results. Should I be using something other than c in the dropscript, or maybe delete spatial data from the object?