j00ey Posted October 10, 2017 Share Posted October 10, 2017 Hi I'm having a problem with a cone twist constraint network. I'm setting all the axes per constraint in SOPs (goal_twist_axis, constrained_twist_axis etc) and I wanted to set the motor_target values inside a SOP solver in my DOP network but it's just not doing anything. I can set motor_enabled and that works fine. I've tried v@motor_target, v@motor_targetr, f@motor_targetry, nothing gets picked up. I can't find anything in the docs or online... Any ideas? Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted October 10, 2017 Share Posted October 10, 2017 cone twist constraint relationships don't support motors. I think you might have to combine them with hard constraints, because those do support angular motors. It's hard to say without knowing what type of result your looking to achieve. Quote Link to comment Share on other sites More sharing options...
j00ey Posted October 10, 2017 Author Share Posted October 10, 2017 Well I'm actually not trying to achieve anything in particular, I'm learning some RBD stuff, specifically constraints and was looking into the cone twist. I think it may be a new thing but it does now have a motor capability and it does work globally [to be honest I'm still trying to understand what it's really doing] but per-constraint doesn't. I just copied the name from the related param field in the same way you can find the names like goal_twist_axis etc and indeed i@motor_enabled works but I couldn't work out the motor_target. Quote Link to comment Share on other sites More sharing options...
cwhite Posted October 10, 2017 Share Posted October 10, 2017 If you look in the details view, the parameter values are actually converted into a quaternion. So, you'll need a quaternion primitive attribute named 'motor_target'. Quote Link to comment Share on other sites More sharing options...
j00ey Posted October 10, 2017 Author Share Posted October 10, 2017 Ah thanks - that's interesting, I'll try that. But on initial inspection, my goal_twist_angle etc attribs aren't converted to quaternion. Where are you seeing that happening? Quote Link to comment Share on other sites More sharing options...
cwhite Posted October 10, 2017 Share Posted October 10, 2017 It's only the motor target parameter that is converted from euler angles to a quaternion. Quote Link to comment Share on other sites More sharing options...
j00ey Posted October 10, 2017 Author Share Posted October 10, 2017 I see - I just tried setting it with a quaternion and it's doing something! Thanks very much for the pointer. Where do you see that in the spreadsheet though to be able to tell you have to set it with a quaternion instead of a vector? Quote Link to comment Share on other sites More sharing options...
cwhite Posted October 10, 2017 Share Posted October 10, 2017 You need to locate the cone twist constraint's data in the details view. In your case, it would be underneath the constraint network Quote Link to comment Share on other sites More sharing options...
j00ey Posted October 10, 2017 Author Share Posted October 10, 2017 Ah yes thanks! I was looking at the Geometry but of course until you set a value manually, there's nothing there. Much appreciated. Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted October 10, 2017 Share Posted October 10, 2017 Sorry, I was checking in H15.5. Your right, this was a new feature added in 16! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.