Isotropix Forums

Custom button in ProjectItem with Script stored

Clarisse Scripting related topics

Custom button in ProjectItem with Script stored

Unread postby pschloter » Sat Oct 03, 2020 12:49 am

Is there a way to add a custom button into a ProjectItem that executes some python script which gets stored with the project (just like other custom attributes)? Any recommendations for how to accomplish this?
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Custom button in ProjectItem with Script stored

Unread postby pschloter » Tue Oct 06, 2020 2:35 am

Is it possible in Python?
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: Custom button in ProjectItem with Script stored

Unread postby desmond » Tue Oct 06, 2020 5:44 am

You should look into scripted classes, that way you can create your own project item.
https://www.clarissewiki.com/4.0/sdk/ex ... cript.html
User avatar
desmond
 
Posts: 62
Joined: Mon Feb 05, 2018 8:46 am

Re: Custom button in ProjectItem with Script stored

Unread postby pschloter » Tue Oct 06, 2020 6:09 pm

Thanks. Will a scripted class get saved with a project? Or does it need to be recreated on each Clarisse start somehow?
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm


Return to Scripting