Hallo supporters,
I am currently writing a JavaScript code that converts a square annotation into a free text annotation.
All properties are copied, except the blending mode.
Which method must be used for this? Is there a trick?
I would be happy to receive a tip.
Many thanks in advance,
How can I copy the blendmode in a Javascript?
Moderators: Tracker Support, TrackerSupp-Daniel, Sean - Tracker, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 19117
- Joined: Mon Jan 12, 2009 8:07 am
- Contact:
Re: How can I copy the blendmode in a Javascript?
Hello Eldereld,
I did take a look at the JS API and could not find anything related to it being able to read, copy or set a blend mode for an object so I do not believe it is possible, however I will also check with our devs to be 100% certain.
p.s. Just heard back from our devs, and they confirmed to me that BlendMode is not defined in JS - so you would not be able to control that property of objects with JS code.
Kind regards,
Stefan
I did take a look at the JS API and could not find anything related to it being able to read, copy or set a blend mode for an object so I do not believe it is possible, however I will also check with our devs to be 100% certain.
p.s. Just heard back from our devs, and they confirmed to me that BlendMode is not defined in JS - so you would not be able to control that property of objects with JS code.
Kind regards,
Stefan