-
May 4th, 2024, 05:55 #1
- Join Date
- Jun 2018
- Posts
- 114
Question regarding setting layer property
Hello,
I am adding a layer (with an extension) to an image and I am having an issue setting the layer to GM Only before adding stamps to it. I wish to add things to the layer so only the GM sees it.
Code:local tLayer = {name = "layer_name",} Image.addLayer(image_control, "paint", tLayer);
Any assistance in this matter would be greatly appreciated.
V/r,
Diablobob
};
-
May 4th, 2024, 06:29 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,078
There is not currently a mechanism to create layers as GM-only layers, nor to change that setting. It would have to be something that is added.
Regards,
JPG
-
May 5th, 2024, 01:11 #3
- Join Date
- Jun 2018
- Posts
- 114
-
May 5th, 2024, 01:29 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,078
You could create a tokeninstance using Token.addToken; and then use the tokeninstance variable to call tokeninstance.setVisible(false).
I have a note to add in some variables to set layer attributes on creation with the next client update (though not currently planned for timing yet).
Regards,
JPG
-
June 4th, 2024, 18:22 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,078
In v4.5.8, I just added a few more table parameters for the addLayer API to be able to specify gmonly, locked, invisible states on layer creation.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks