Content Library v4.24 and v2026

m.gunnm.gunn Posts: 4

How can I script my selected item in the content library? i.e. get the id or it's filename/location [absolute or relative]

 

I can't see a script for it!

Post edited by m.gunn on

Comments

  • barbultbarbult Posts: 27,390

    To find where a selected item is located on disc, you can right click on the item thumbnail and select "Browse to File Location". It will open an OS explorer/finder window in the folder that contains the item, with the item selected. That shows you the file name and the folder location. No script is necessary to get than information.

    Screenshot 2026-08-14 024746.png
    353 x 527 - 101K
  • jmucchiellojmucchiello Posts: 1,950
    edited August 14

    I think he wants to know how to do it for use within a script. This is the script developer forum.

    Post edited by jmucchiello on
  • barbultbarbult Posts: 27,390
    Ah, I didn't pay attention to what forum section it was in. Since the user had so few posts, I assumed it was a new user kind of question.
  • Richard HaseltineRichard Haseltine Posts: 111,173

    What exactly are you wanting? If you run a script from a file then  getScriptFile https://docs.daz3d.com/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/script_dz#a_1a4bc0c81d303617720205b9fd1751ca55 will rturn its location. Be aware thatif this is something for the Daz Store the method will not work with Daz Connect installed files, and may lead to unwarranted expectations in other contexts, so be  careful how you use it.

    If that isn't the thing you are after please give more detail.

Sign In or Register to comment.