Page 1 of 1
Acces Brush in project in code
Posted: Mon Apr 27, 2020 9:57 am
by TearsOfMe
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?
Re: Acces Brush in project in code
Posted: Mon Apr 27, 2020 11:42 am
by Bugala
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:
Code: Select all
MoveBrush("mydesignerbrushname", 100, 100)
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.
Re: Acces Brush in project in code
Posted: Mon Apr 27, 2020 11:45 am
by Bugala
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.
Re: Acces Brush in project in code
Posted: Mon Apr 27, 2020 11:55 am
by TearsOfMe
Ahh...i look on the video and i think i get it.
Using layer in place of brush seems to work.
Thanks a lot.