Hello,
I am trying to make a script that updates the total page numbers for a project and adds the correct page number to each sheet based on it position relative to the other sheets in this project (Example: Sheet 1 of 100).
The total page count I figured out but so far I can’t seem to find a way to get the instance parameter of each sheet to take on the valule of the sequence list I made. I think it is because the Element.SetParameterByName block does not accept list as in input for the “Value” parameter. Is there a way to create a loop to iterate through the list of elements and the sequence list somehow?
Your inputs are correct, at least if the parameter is of the number type.
Could you show the error message of the Element.SetParameterValueByName node?
I’m assuming it’s because you are feeding a wrong object type.
For something like this I recommend using a Dictionary. Dictionaries are great for mapping and retrieving matching objects. For example: a sheet and its sheetnumber: