Isotropix Forums

Where can I find the EVT_ID names for each widget?

Clarisse Scripting related topics

Where can I find the EVT_ID names for each widget?

Unread postby qinyao » Thu Jan 17, 2019 1:04 pm

Hi

I wanna connecting a checkbox widget and an event. But I don't know what's the event name of truning on/off the checkbox button.
Code: Select all
evt.connect(my_checkbox , '???', evt.doSomething)


And where can I find the EVT_ID names for other widget?
I only find "EVT_ID_PUSH_BUTTON_CLICK" from the example of help document.
qinyao
 
Posts: 73
Joined: Fri Aug 26, 2016 11:29 am

Re: Where can I find the EVT_ID names for each widget?

Unread postby bvaldes » Thu Jan 17, 2019 2:38 pm

Hi,

First of all sorry for the late reply. All the EVT_ID .... are part of ix.api. In python you can find the method of a class by using dir(). I wrote you a very simple script to list all the events.
Unfortunately in Clarisse, the log output are limited and we can't print them all. I suggest you to add them to a list and then print the list instead of print all the EVT_ID line per line.

python code

for method in dir(ix.api):
if "EVT_" in method:
print method

The should give you a relist like:
Code: Select all
EVT_ID_APPLICATION_EVALUATION_INTERRUPTED
EVT_ID_APPLICATION_EVALUATION_STARTED
EVT_ID_APPLICATION_FOCUS_WIDGET_CHANGED
EVT_ID_APPLICATION_FOREGROUND_COLOR_CHANGE
EVT_ID_APPLICATION_FRAME_RANGE_CHANGED
EVT_ID_APPLICATION_GIZMO_SIZE_CHANGE
EVT_ID_APPLICATION_IDLE
EVT_ID_APPLICATION_IMAGE_CACHE_CHANGED
EVT_ID_APPLICATION_IMAGE_CACHE_PATH_CHANGED
EVT_ID_APPLICATION_IMAGE_VIEW_HUD_CHANGED
EVT_ID_APPLICATION_LINKED_PIVOTS_CHANGED
EVT_ID_APPLICATION_MAIN_MENU_CHANGED
EVT_ID_APPLICATION_MAX_LOG_WIDGET_LINES_NUMBER_CHANGED
EVT_ID_APPLICATION_MODULES_LOADED
EVT_ID_APPLICATION_MOTION_BLUR_CHANGED
EVT_ID_APPLICATION_ON_QUIT
EVT_ID_APPLICATION_OPENVDB_CHANGED
EVT_ID_APPLICATION_OVERSCAN_OPACITY_CHANGED
EVT_ID_APPLICATION_PREFERENCES_LOADED
EVT_ID_APPLICATION_PREVIZ_LIGHTING_CHANGED
EVT_ID_APPLICATION_PRE_EVALUATION_START
EVT_ID_APPLICATION_PROGRESS_BARS_CHANGED
EVT_ID_APPLICATION_PROJECT_LOAD_END
EVT_ID_APPLICATION_PROJECT_LOAD_START
EVT_ID_APPLICATION_PROJECT_SAVE_END
EVT_ID_APPLICATION_PROJECT_SAVE_START
EVT_ID_APPLICATION_QUIT
EVT_ID_APPLICATION_RES_PRESET_FILE_PATH_CHANGED
EVT_ID_APPLICATION_RES_PRESET_FILE_USE_CHANGED
EVT_ID_APPLICATION_RUN
EVT_ID_APPLICATION_SCRIPTING_OPTIONS_CHANGED
EVT_ID_APPLICATION_SHELF_CATEGORY_MOVED
EVT_ID_APPLICATION_SHELF_CATEGORY_REMOVED
EVT_ID_APPLICATION_SHELF_ITEM_ADDED
EVT_ID_APPLICATION_SHELF_ITEM_CHANGED
EVT_ID_APPLICATION_SHELF_ITEM_MOVED
EVT_ID_APPLICATION_SHELF_ITEM_REMOVED
EVT_ID_APPLICATION_SHELF_SIZE_CHANGE
EVT_ID_APPLICATION_SNAP_DISTANCE_CHANGED
EVT_ID_APPLICATION_SNAP_PLANE_CHANGED
EVT_ID_APPLICATION_START
EVT_ID_APPLICATION_TAG_DEFINITION_CHANGED
EVT_ID_APPLICATION_TEMP_FOLDER_CHANGED
EVT_ID_APPLICATION_TEXTURE_CACHE_CHANGED
EVT_ID_APPLICATION_TIMELINE_KF_DISPLAY_CHANGED
...

I hope this will help you.
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Where can I find the EVT_ID names for each widget?

Unread postby sam » Thu Jan 17, 2019 2:51 pm

We will improve the documentation in the future so that they appear in the documentation of the SDK. Right now they only appear in the header files in the SDK which are not distributed publicly.
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1401
Joined: Fri Jan 25, 2013 11:33 pm

Re: Where can I find the EVT_ID names for each widget?

Unread postby qinyao » Fri Jan 18, 2019 1:51 am

Thank you for your help!
qinyao
 
Posts: 73
Joined: Fri Aug 26, 2016 11:29 am


Return to Scripting