Skip to main content
18-Opal
November 14, 2023
Solved

Extension development - enable dragger?

  • November 14, 2023
  • 1 reply
  • 3853 views

I have been doing some extension development, and have had pretty good success with it. But I'm struggling with one thing: I am trying to develop a 3D widget, with the usual x, y, z, rx, ry, rz properties to position it. The runtime preview respects these attributes as expected, but the design time view has a few issues:

  1. The values appear to be applied twice in the design canvas, e.g. if I set x=0.1, the widget is rendered at x=0.2. If I rotate by 30 degrees, the widget is rendered rotated 60 degrees
  2. The widget shows the dragger (translate/rotate) control in the design view, and I can use it to apply translations/rotations to the rendered widget, but those changes don't update the widget's location properties. For example, I can drag the widget "up" on the Y axis, and it moves as expected on the design canvas, but the Y property value doesn't change (nor do any other properties change).
  3. Clicking the widget in the design canvas highlghts the rendered widget, but doesn't select it in the tree view. To fully activate the widget, you have to select it in the tree view.

I suspect items 2 & 3 are related.

 

So I guess I've left something out of my design JS file, but I'm not sure what I need to make the design canvas work the way it's supposed to. I've been using some of the OCTO extensions as a guide, particularly the Progress-3D widget.

 

Can anyone give me some tips on how to make sure the positioning functions in the design canvas work with my extension? @SteveGhee or @RolandRaytchev or @sgreywilson maybe?

Best answer by RolandRaytchev

Hi @ClayHelberg ,

received a developer feedback that in the Vuforia Studio 9.20 issue is not reproducible. Tested and verifed that all projects I used to report the poroblem will update the dragger correctly. ... but I have installed  9.20 /PTC internal version/. When this is not there in 9.19 we need to wait for couple of days . I hope that this release (9.20)  will be in  May /very soon. Thanks 

1 reply

21-Topaz I
November 15, 2023

Hi @ClayHelberg ,

I had in the past some attempts to use widget extensions where I noticed that some coordinates in 3d space are not corrected interpreted -but there I adapted the value so that it was working without further check what is the reason for such behavior. The specific  behavior was different depending on the particular  implementation, I believe. To understand the problem , possibly it will be helpful if there is an example which demonstrate the issue. You mentioned that it is based on  specific extension progress-3d of the OCTO Extensions, but to be sure that we speak about the same thing , it will be better to have an example (simplified only to the relevant problem). Because I my self did not have so much experience with developments of extension - 3D so  need to check more detailed and if required to ask the R&D team for further assistance. Thanks BR. 

18-Opal
November 15, 2023

Hi @RolandRaytchev , thanks for the reply. I will attach a copy of my extension for troubleshooting.