Squish is not recognizing object

1.3k Views Asked by At

I'm trying to import objects from an external file. The Object is not stored in Object map.

Definition:

    shutterMultiplier = waitForObject({"name": "UserVisible/Capturing 
    Settings/Basic/Shutter Multiplier.AHBox<int>.SpinBox", "type": "QSpinBox", 
    "visible": 1})

This is working correctly. However, when I try it with:

    shutterMultiplier = findObject({"name": name, "type": type, "visible": 1})

When

   name = UserVisible/Capturing Settings/Basic/Shutter Multiplier.AHBox<int>.SpinBox
   type = QSpinBox

I only get LookUpError about not recognized properties. I also tried the option with name and typed in "". The list of missing properties is not populated. Is there any way how to make this work?

2

There are 2 best solutions below

0
On BEST ANSWER

Problem was not the syntax. Solution was to save correct syntax and kill the application and all created instances. Also there helped to make it strings without ".

    str(testData.field(sample, "name"))
3
On

Try assigning properties for name as follows:

name = {"UserVisible/Capturing Settings/Basic/Shutter Multiplier.AHBox.SpinBox", "type": "QSpinBox", "visible": 1}

I believe visible:1 is occurrence of some sort, see if you can find alternative properties which can be robust.As you keep adding objects, your list gets bigger so does your occurrence.