Is there a way to acces the brushes that i create with designer in the code of an action object?
P.S: Hier mal auf deutsch, weil ich nicht weiss ob die Frage oben so verstaendlich ist. Also ich habe in meinem Designer Projekt 20 Pinsel erstellt und wuerde diese jetzt gerne in einen Code benutzen. Geht das ueberhaupt?
Acces Brush in project in code
Re: Acces Brush in project in code
Yes there is. I might take a better look at this at some other point.
But basically idea is that first you make a brush object normally with designer. Then you name that brush object, I dont recall was it name or that ID thing you had to name, but you could use same name for both at first.
Then when you make action object with code, you can use brush commands using that name.
as example:
I think that is how it works, but as I said, not checking at this moment right now, so might be giving you wrong instructions here.
But basically idea is that first you make a brush object normally with designer. Then you name that brush object, I dont recall was it name or that ID thing you had to name, but you could use same name for both at first.
Then when you make action object with code, you can use brush commands using that name.
as example:
Code: Select all
MoveBrush("mydesignerbrushname", 100, 100)
Re: Acces Brush in project in code
This isn't exactly about that, but might help you anyway:
https://www.youtube.com/watch?v=2OF8gfDHuNg
This is Designer tutorial teaching a bit about coding.
https://www.youtube.com/watch?v=2OF8gfDHuNg
This is Designer tutorial teaching a bit about coding.
Re: Acces Brush in project in code
Ahh...i look on the video and i think i get it.
Using layer in place of brush seems to work.
Thanks a lot.
Using layer in place of brush seems to work.
Thanks a lot.