Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define color of a new structure #31

Open
mfizyczka opened this issue Mar 3, 2023 · 1 comment
Open

How to define color of a new structure #31

mfizyczka opened this issue Mar 3, 2023 · 1 comment

Comments

@mfizyczka
Copy link

Hi,

According to the Velocity Python Guide StructureOperations like createStructure, crop, intersectStructures, unionStructures, createStructureFromMask have a color parameter which might be defined while creating a new structure. Can you provide some example?
Simple "Red" doesn't work.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: Wrong number or type of arguments for overloaded function 'StructureOperations_intersectStructures'.
  Possible C/C++ prototypes are:
    vsc::StructureOperations::intersectStructures(int const,std::vector< int,std::allocator< int > > const &,std::string const &,vsc::Color *)
    vsc::StructureOperations::intersectStructures(int const,std::vector< int,std::allocator< int > > const &,std::string const &)
@mfizyczka mfizyczka changed the title How to define of the new structure How to define color of the new structure Mar 3, 2023
@mfizyczka mfizyczka changed the title How to define color of the new structure How to define color of a new structure Mar 3, 2023
@mark-poscablo
Copy link

Hi @mfizyczka, I'm aware that the API exposes the color / targetColor parameters in those functions, but unfortunately those are not meant to be used by the API user - structures' colors in Velocity are automatically assigned by the Velocity Engine. Apologies for this confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants