Reply To: Dangers of using GLOB_​​​FEEDBACK_​​​MODE in Parameter Script

Home Forums Problems and solutions in GDL Parameter connections Dangers of using GLOB_​FEEDBACK_​MODE in Parameter Script Reply To: Dangers of using GLOB_​​FEEDBACK_​​MODE in Parameter Script

#4107
Barry Kelly
Participant

This is the best I can come up with at the moment – need to get back to real work!

values "flip_switch" 0,1

n = APPLICATION_QUERY ("parameter_script", "firstoccasion_in_progress", isFirstRun)

if isFirstRun then
	if flip_switch = 1 then
		A = A + 1
		PARAMETERS A = A
!!		flip_switch = 0
!!		PARAMETERS flip_switch = flip_switch
	endif
endif

This is what you need in the parameter script.
Delete what you have in the master script.

This works in 3D but you have to reset the hotspot to zero your self.
Odd thing is the info box increases by 3000 but the object shows correct at 2000 (see image).
If you open the settings dialogue it will increase another 1000 to 5000.
Not sure what is going on there.

If you in-comment the two lines in my script then it all works perfectly but the hotspot does not stretch any more as it is obviously being reset before the object adjusts.
But changing the parameter in the settings dialogue works.

This may give some help or maybe someone else has some better ideas.

Barry.

Attachments:

Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit