Ideation, Creation & Everything In Between
Remaining on the building the UI I am still on the stage of using the operator properties window I have to then control the input names for the switch previously they were 0 and 1 so I have now name the teapot to 0 = Teapot and 1 = Custom object in order to make the UI easier to use. This is a preview on the right hand side of what my UI now looks like with the two options now being Teapot and custom object instead of the basic 0 and 1. In the same method as the switch and pulling in the select input parameter I am able to pull in nodes such as the platonic_object1_xform1 like in the screenshot above I then pulled in the position and size parameters of the platonic_object1_xform1 (The teapot).
The next stage was to pull in a seperator which was in the create parameters panel on the left hand side of the operator type properties window. I then placed the seperator between the switch and the instances of the teapot. I moved on to bringing in the object merge node into the operator properties and renamed it to Custom_Object_Path and proceeded with adding an expression line of code to disable the when not viewing the relevant object in the UI.Here are previews of what the tool UI now looks like. Some of the options are now greyed out as inactive as I have disabled them.
In order to have more of the options disabled whenever using the UI I had to add more expressions to the teapot parameters I was able to select more than one parameter at once by using shift click and the code I wrote was applied to both of the parameters. Pretty much what the code does is when I am on object mode disable the teapot properties and when I am on teapot mode disable the object mode traits.Here are final previews of what the user interface now looks like when browsing through the different modes of object and teapot.
The final thing that I had to do for the creation of the UI was to right click on the Brickify node and select match current definition what this does is locks the asset, the saved otl file now controls what goes on within the scene.