select an asset in content pane

Hello,

I have a little problem. I can't select the asset in the content pane

here is my code

var oPaneMgr = MainWindow.getPaneMgr();

 

var oPane = oPaneMgr.findPane("DzContentLibraryPane");

 

 

var oContainer = oPane.getSelectedContainer();

var azerty=oContainer.getNumAssets ();

oContainer.getAsset(0).select

but it does not work someone can help me

thanks

Post edited by DAZ_ann0314 on

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,961

    Is select a method (in which case it will need parentheses, with or without values) or a proeprty (in which case it needs to be assigned a value)? Remeber that undocumented features are subject to change without notice.

  • Thank you for your answer. I understand.

    I found an interesting function but I don't know what a Qstring or a Qliststring is.

    var oPaneMgr = MainWindow.getPaneMgr();

    var oPane = oPaneMgr.findPane("DzContentLibraryPane");

    oPane.selectAssets(QString,QStringList)

  • Richard HaseltineRichard Haseltine Posts: 100,961

    In general QName is the generic, Qt Script version of objects that Daz Studio generally implemets as DzName. QString is just a string object - presumably an identifier (e.g filename, perhaps) for the item to select. QStringList isn't in the DS scripting docs, but appears to be an object made of multiple strings searching for the (later, note) Qt docs https://doc.qt.io/qt-5/qstringlist.html

  • Thank you for your help

    it's beyond my skinny skills
    too bad

Sign In or Register to comment.