DzProperty.isSelected not work,can't find current selected Property
578276864_563542692c
Posts: 31
why the"DzProperty.isSelected" not work,can't find current selected Property,alwasy retrun false!
Comments
An example of how you are using it might help those who know diagnose the issue
The code is very simple
code removed
I just don't know what is the Property selected status,I have tryed many times,just can't get a selected property.
How about DzProperty.isSelected() - it's a method, not a value.
Sorry, cross posted - where is getElementProperties coming from? It errors for me.
I'm sorry,below is the full code.
code removed due to lack of proper license complianance
That looks to be http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/properties/node_properties/start , in whichc ase please edit to include the required CC by Attribution info.
The forum does support code blocks, between the button for inserting a picture link and the button for inserting a table.
I'm not quite sure if it is possible to set the seelcted state in advance from the UI - restring the commented out test on the name and adding this as the conditional code
causes the property name to be printed so it is working, but I can't trigger it be clicking on a slider in regular or edit mode.
yes,it can be triggered by use oProperty.setSelected( true ),but can't be trigger by click on UI,is it a bug?
I have removed the code from your post as you have not made it cinform to the license terms.
I don't know if it is a bug or if we are simply not understanding what selection is meant to refer to. You could open a ticket to ask for clarification.
Ok, thanks for help!