Hi list.

A real novice at this but I'm butchering various scripts at the moment and
wondered if anyone can shed any light on these two bits of code. I can find
examples of number 1 in VB but I'm working in Python. everything I've
discovered at the moment doesn't work

1 - I want to run 2 portions of scripts depending on whether the inspected
property of a custom parameter set has the button push 'ok' or 'cancel'  -
I can't find the code for this portion of the 'if' statement

2 (a lot more complex, i suspect) I want to look up and get the latest
version number of a saved out model/scene/action (all of these have the
format "v##'). These will live in a folder structure determined by a number
of variables in the script that I have already. My script will then add 1
to this number in order to ensure the next export doesn't override an
existing asset. As a bonus... if the user changes this number meaning an
export would save over an existing asset then it would be great to flag a
warning with an 'THIS VERSION ALREADY EXISTS ARE YOU SURE" message.

Any tips or links to scripts that I can hack would be much appreciated!

Cheers
Jonny

Reply via email to