Way to make UniqueIDs?
Posted: Mon Nov 11, 2024 2:34 pm
Several of Hollywood commands support UniqueID, like if I put:
I will get a UniqueID.
However, these seem to be tied to a return value of some certain commands like MakeButton or CreateTextObject as example.
It would be handy to have an option to make these UniqueIDs myself. For example I have this AnimationQueue where there are Timed Animations, as in Animations that last a certain time and are then destroyed from the queue. Destruction of them is based upon each Animation having a Unique name and this way using this name this animation is destroyed.
Sometimes I do want to use a specific name, but often times i just need it to have a unique name to not collide with others and to be destroyed in the end.
I can of course make a system like:
But I think it would be Handy If I could instead use something like:
instead.
But is this doable in Hollywood already, and if not, then as a wishlist item.
Code: Select all
UniqueID = MakeButton(Nil...)However, these seem to be tied to a return value of some certain commands like MakeButton or CreateTextObject as example.
It would be handy to have an option to make these UniqueIDs myself. For example I have this AnimationQueue where there are Timed Animations, as in Animations that last a certain time and are then destroyed from the queue. Destruction of them is based upon each Animation having a Unique name and this way using this name this animation is destroyed.
Sometimes I do want to use a specific name, but often times i just need it to have a unique name to not collide with others and to be destroyed in the end.
I can of course make a system like:
Code: Select all
a=a+1
Name="noname"..aCode: Select all
Name=CreateUniqueID()But is this doable in Hollywood already, and if not, then as a wishlist item.