How can I copy the blendmode in a Javascript?

A picture is worth a thousand words. We have created some pdfs tutorials showing common tasks.

Moderators: Tracker Support, TrackerSupp-Daniel, Sean - Tracker, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
Eldereld
User
Posts: 4
Joined: Mon Dec 17, 2018 9:20 pm

How can I copy the blendmode in a Javascript?

Post by Eldereld »

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,
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 19133
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: How can I copy the blendmode in a Javascript?

Post by Tracker Supp-Stefan »

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
Post Reply