THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/03/2010 at 20:09, xxxxxxxx wrote:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
Let's say i want to make the userdata id1 slider to control de .y positin of an object, all good (but the object can't be moved in viewport). And if the current viewport position of the object has to update the slider value = all ok (but the slider can't be changed, once mouse release the value returns to same value of course).
What if i want both things at same time, so the object if moved in viewports updates de slider, and if slider changes update the viewport. **
caca = op#ID_USERDATA:1;
cacapos = op->GetPosition();
op#ID_USERDATA:1 = cacapos.y; // Sends the object position value to the userdata
op->SetPosition(vector(0,caca,0)); // Sends the user data value to the object position
On 13/12/2011 at 10:40, xxxxxxxx wrote:
This COFFEE script seems to be buggy in the viewport. I'd really like to know how do this via Python!