You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to adjust the shape of the lines reflecting my reactions. When I use any variation of a setCurveSegment function, it does not change the line that is existing, instead it adds a new line. For example, when I use the code below the original R10 never moves, but I do get a new line that is the shape I want. Am I using the function wrong, or is there another similar function that does what I'm looking for?
Also, it seems that the text box for species is not centered around it's coordinates, rather one of the corners is located at the coordinates. This means that the coordinates I set for the species don't line up correctly with the coordinates I am setting for the curve segment. Is this intentional? Is there an option to center the text boxes for species on the provided coordinates instead?
The text was updated successfully, but these errors were encountered:
My assumption is that your intention is setting the curves connecting species to a reaction centroid node. If that is the case, you need to use functions that has this "setSpeciesReferenceCurveSegment[...]" form. Note that you need to pass the index of the curve to these function as 'species_reference_index' argument. This might be a little bit complicated to use, so fee free to ask me to set up a meeting to go through it.
I'm not entirely sure I fully understand the issue, but it seems like your assumption might be that the 'x' and 'y' values of the bounding box for a species glyph correspond to the center of the box. That's not actually the case and the 'x' and 'y' values correspond to the top-left corner of the bounding box, and not its center. Let me know if knowing that fixes your issue.
I want to adjust the shape of the lines reflecting my reactions. When I use any variation of a setCurveSegment function, it does not change the line that is existing, instead it adds a new line. For example, when I use the code below the original R10 never moves, but I do get a new line that is the shape I want. Am I using the function wrong, or is there another similar function that does what I'm looking for?
M1.setCurveSegmentStartPointX('R10', 2764.0)
M1.setCurveSegmentStartPointY('R10', 943.0)
M1.setCurveSegmentEndPointX('R10', 2399.0)
M1.setCurveSegmentEndPointY('R10', 1220.0)
M1.setCurveSegmentBasePoint1X('R10', 2764.0)
M1.setCurveSegmentBasePoint1Y('R10', 1220.0)
M1.setCurveSegmentBasePoint2X('R10', 2764.0)
M1.setCurveSegmentBasePoint2Y('R10', 1220.0)
M1.draw()
Also, it seems that the text box for species is not centered around it's coordinates, rather one of the corners is located at the coordinates. This means that the coordinates I set for the species don't line up correctly with the coordinates I am setting for the curve segment. Is this intentional? Is there an option to center the text boxes for species on the provided coordinates instead?
The text was updated successfully, but these errors were encountered: