Skip to main content
Known Participant
March 15, 2023
Question

GetStroeAlignment() is not present AIPaintStyleSuite adobe sdk

  • March 15, 2023
  • 1 reply
  • 396 views

hi all,

 

In AIPaintStyleSuite  there is a  SetStrokeAlignment()  function to set the  stroke alignment property for the art object. but to retrieve the stroke alignment property which is applied for the art object is not found there.. 

can anyone help me how to  retrieve the stroke alignment property which is applied for the art object with sample code..

 

Thanks

This topic has been closed for replies.

1 reply

Community Expert
March 15, 2023
Mahesh12Author
Known Participant
March 15, 2023

hi Manan,

 

sAIArt->SetArtUserAttr(art, kArtSelected, kArtSelected);

the above code i used to select the each path 

 

ai::uint32 strokeAlignType;

strokeAlignType = sAIPaintStyle->GetStrokeAlignmentFromSelection();

cout << "strokeAlignType = "<<strokeAlignType <<endl;

the above code i used to retrieve the stroke align type for the selected path.
but while retriving the property im getting same stroke align type value, which is applied for the first path.

 

sAIArt->SetArtUserAttr(art, kArtSelected, kArtSelected);

the above i used to deselecting the selected art object

 

this code i have used to retrieve the stroke alignment details which is applied for the art object..

 

while iterating im getting the same stroke alignment type value which is applied for the first path , that is stroke alignment type value which is i retrieved for the first art object ..

 

can i get solution to this

 

Thanks