Jump to content
Developer Wiki and Function Reference Links ×

ovThumbnailView and ovThumbnalRender object variable values


Carles Olle

Recommended Posts

Hi,

 

Does anybody know which are the values for object variables:

const short ovThumbnailView    = 1152;    // short    write only - The Resource Browser's thumbnail view for a symbol - Public for VS
const short ovThumbnailRender  = 1153;    // short    write only - The Resource Browser's thumbnail render for a symbol - Public for VS

 

I did try to set them up with a bunch of values (0, 1, 2, etc.) but it does not seem to work with this code:

 

vs.BeginSym("{} Picture Symbol".format(pictureName))
picture = vs.CreateCustomObject("Picture", 0, 0, 0)
vs.SetName(picture, pictureName)
vs.EndSym()
symbol = vs.GetObject("{} Picture Symbol".format(pictureName))

vs.SetObjectVariableInt(symbol, 1152, 3) #Thumbnail View - Front
vs.SetObjectVariableInt(symbol, 1153, 2) #Thumbnail Render - OpenGL

 

Somehow I don't seem to be able to find this information.

Any ideas?

 

Thanks

--Carlos

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...