Newb problem: Convert a string to scene object name?
Hi, I'm currently trying to develop some custom tools for a project I'm working on.
I've currently got a rollout featuring a dropdownlist (ddlObjects) and a button (btnMove), among other things.
ddlObjects contains the names of several scene objects, either poly meshes or splines. These names are stored in the ddlObjects.items array as strings.
What I want is for btnMove to move whatever object is selected in ddlObjects by a set amount. Preferably without the object being visibly selected in a viewport.
Currently I'm been trying
move ddlObjects.selected [0,1,0]
or other variation there of, but am stuck on the problem of the selection from ddlObjects being read as a string.
I know that this is probably a simple thing to fix but I can't for the life of me find out how. Please advise.