Sam Jones Posted January 7, 2018 Share 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 Quote Link to comment
JBenghiat Posted January 8, 2018 Share 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. Quote Link to comment
SamIWas Posted January 21, 2018 Share 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. Quote Link to comment
mjm Posted January 21, 2018 Share Posted January 21, 2018 3 hours ago, Benson Shaw said: +1 for that tip, Thanks Matt! -B ^+1 as well Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.