THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/11/2011 at 23:47, xxxxxxxx wrote:
Any help with the syntax pls?
I'm still struggling a bit to understand whats going on - have commented
_<__<_t_<__<_t_<__<_t_>_
def main() :
md = mo.GeGetMoData(op)
if md==None: return 1.0
user_index = op[c4d.ID_USERDATA, 1]
index = md.GetCurrentIndex()
mode = md.GetBlendID() # sets up the effector to use the parameters
if mode == c4d.ID_MG_BASEEFFECTOR_POSITION and index == user_index :
return c4d.Vector(1) #return all the values in the position section
else: return 0 # if condition not met, don't return any data from the position section_/div>
Now to me it would make sense to return a vector of 1,1,1 to turn return 100% of each of the parameters, but that doesnt work
and combine all the checks with AND
if mode == c4d.ID_MG_BASEEFFECTOR_POSITION and index == user_index
and
mode == c4d.ID_MG_BASEEFFECTOR_SCALE and index == user_index
and
mode == c4d.ID_MG_BASEEFFECTOR_ROTATION and index == user_index
but no
I just need someone to put me on the straight an narrow