Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
rohithpm  
#1 Posted : Friday, January 15, 2016 3:25:28 AM(UTC)
rohithpm

Rank: Newbie

Groups: Member
Joined: 1/15/2016(UTC)
Posts: 5

Hi Team,

I have different text layers in my PSD file. When the user edits and save, I need to get the latest values from these layers.

I am using iframe api to load the customercanvas(hosted seperately) from my site.I could not find any way to access the layer values from my client site.

Any help is appreciated.

Rohith

Edited by user Friday, January 15, 2016 5:47:03 AM(UTC)  | Reason: Not specified

Kate D.  
#2 Posted : Monday, January 18, 2016 3:04:07 AM(UTC)
Kate D.

Rank: Advanced Member

Groups: Member
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi rohithpm,

The finishProductDesign method returns the userChange parameter, which contains latest values from all text layers.
Code:

editor.finishProductDesign({
    proofMaxHeight: maxProof.height,
    proofMaxWidth: maxProof.width
})
    .then(function (result) {
     console.log(JSON.stringify(result.userChanges));
    });


Best regards,
Kate

Edited by user Monday, January 18, 2016 3:06:31 AM(UTC)  | Reason: Not specified

rohithpm  
#3 Posted : Wednesday, January 20, 2016 5:42:21 AM(UTC)
rohithpm

Rank: Newbie

Groups: Member
Joined: 1/15/2016(UTC)
Posts: 5

Hi Kate,

Thanks for the reply. Is there a way to get the values from SaveProduct method.

Because I want the values on Save.


Thanks
Rohith
Kate D.  
#4 Posted : Wednesday, January 20, 2016 10:45:38 PM(UTC)
Kate D.

Rank: Advanced Member

Groups: Member
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
rohithpm,

Unfortunately, the SaveProduct method doesn't return the userChanges parameter. It returns only returnToEditUrl and stateId parameters.

Best regards,
Kate
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.