Sam Jones 32 Posted January 7, 2018 User creation of new OIP parameters is a unique feature of the "Lighting Device" PIO. However... It looks like VS cannot assign values to user created fields in the Lighting Device. I created to new field, “Sam Field 1” and “Sam Field 2”. I then ran the following script, and it failed to assign the specified value. PROCEDURE TestUserFieldAssignment; VAR AssignVal : REAL; AssignStr : STRING; Fixture : HANDLE; BEGIN Fixture := FSActLayer; AssignVal := 4359; AssignStr := Num2StrF(AssignVal); SetRField(Fixture, 'Lighting Device', 'Sam Field 2',AssignStr); END; RUN(TestUserFieldAssignment); Is there a way for VS to assign values to user created fields in the Lighting Device? Attached is an example file. User_Field_Test.vwx Share this post Link to post
JBenghiat 116 Posted January 8, 2018 The data is there, you just need to add ResetObject (Fixture); if you want to see the value change with Obj Info open. Share this post Link to post
SamIWas 22 Posted January 21, 2018 I have dozens of scripts that do exactly this on my 20 or so user-created Lighting Device fields. I don't recall not seeing changes in the OIP, but maybe that's true. I did have to add a ResetObject to get the data to change on screen. Share this post Link to post
mjm 90 Posted January 21, 2018 3 hours ago, Benson Shaw said: +1 for that tip, Thanks Matt! -B ^+1 as well Share this post Link to post