Getting the workplane matrix
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/09/2012 at 04:45, xxxxxxxx wrote:
Hey guys.
Hope everyone is enjoying the R14, I certainly do. I have one question though regarding the workplane:
Is there any way to retrieve the workplane's matrix? Didn't find anything in the python SDK documentation. Maybe someone stumbled upon it and can help me out.
Thanx
Phil -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2012 at 06:59, xxxxxxxx wrote:
Hi Phil,
I'm afraid it's not possible to get the workplane matrix with Python in R14. The new snap system isn't accessible from Python.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2012 at 12:56, xxxxxxxx wrote:
Well that's too bad, but thanks for the info.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2012 at 13:09, xxxxxxxx wrote:
I think there's a solution for it (didn't try it though :D)
make a null object...with xpresso tag...make that null global position and rotation = 0 (just connect constant 0 to global matrix...posion..rotation)
now work with that null inside python as it's pinned to the work plane now
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2012 at 00:02, xxxxxxxx wrote:
Sadly that doesn't work either. But thanks for the suggestion.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2012 at 02:40, xxxxxxxx wrote:
why not work?
I think it must work
(u need to use python tag) and put priority of the tag to something after the xpresso tag...then in the python code try to read the global position (didn't try to read the global position but it must be accessable) -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2012 at 02:54, xxxxxxxx wrote:
Maybe I get something wrong, but the null stays in the original 0,0,0. I think it's because the worldspace doesn't really change (which would also mess up keyframed animations) only the work plane changes and as I understand it, the working plane is just a snapping and modelling helper.
What I wanted to do was a script to set the selected object to the center of the (changed) workplane. I know there is the button to orient the current object to the workplane, but it doesn't center it. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2012 at 04:07, xxxxxxxx wrote:
u dont need script then
it's pretty simple ....use xpresso ...put condition node with flip flop ....with boolean check mark (user data boolean)
once u check ..it will trigger a condition ...which will position that object at 0 0 0
and to define the object u need a python node in side xpresso to get selection ...and transfer that selection as linksounds complicated but it's simple