help with last similar operation in stack
Re: help with last similar operation in stack
I have question regarding axis locking
https://download.autodesk.com/global/do ... =d30e47900 section where (If Allow Double-click to Toggle Active Axes )
If it's possible to script those - locking/unlocking axis, theres a of of clicking if i'm using often (ex: x y z to lock axis & smt else to unlock) ~ blender approach
ps: script editor doesn't show record actions - there are somewhere hidden ...
https://download.autodesk.com/global/do ... =d30e47900 section where (If Allow Double-click to Toggle Active Axes )
If it's possible to script those - locking/unlocking axis, theres a of of clicking if i'm using often (ex: x y z to lock axis & smt else to unlock) ~ blender approach
ps: script editor doesn't show record actions - there are somewhere hidden ...
Re: help with last similar operation in stack
Hello, I've made a plugin for that.
Commands SetTransformAxisX(), SetTransformAxisY(), SetTransformAxisZ() make only one specific axis active or all active,
ToggleTransformAxisX(), ToggleTransformAxisY(), ToggleTransformAxisZ() enable/disable specific axis
https://drive.google.com/file/d/12JNAMb ... sp=sharing
Commands SetTransformAxisX(), SetTransformAxisY(), SetTransformAxisZ() make only one specific axis active or all active,
ToggleTransformAxisX(), ToggleTransformAxisY(), ToggleTransformAxisZ() enable/disable specific axis
https://drive.google.com/file/d/12JNAMb ... sp=sharing
Re: help with last similar operation in stack
thanks !
i've modified so it will work like blender - where holding a button will enable only one active axis - u'r plugin have to type 2 axis to enable & 2 to disable
amazingly how u can modify xsi ))) thanks again
i've modified so it will work like blender - where holding a button will enable only one active axis - u'r plugin have to type 2 axis to enable & 2 to disable
amazingly how u can modify xsi ))) thanks again
Code: Select all
function XSILoadPlugin( in_reg ){
in_reg.Author = "Kolya";
in_reg.Name = "ToggleTransformAxis";
in_reg.Major = 1;
in_reg.Minor = 0;
in_reg.RegisterCommand("ToggleTransformAxisX");
in_reg.RegisterCommand("ToggleTransformAxisY");
in_reg.RegisterCommand("ToggleTransformAxisZ");
in_reg.RegisterCommand("SetTransformAxisX");
in_reg.RegisterCommand("SetTransformAxisY");
in_reg.RegisterCommand("SetTransformAxisZ");
//RegistrationInsertionPoint - do not remove this line
}
function ToggleAxis(axis){
var ActiveAxis = GetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED");
var x = 1 + axis;
var y = 2 + axis;
var z = 4 + axis;
if(ActiveAxis == y || ActiveAxis == z || ActiveAxis == y+z || ActiveAxis == 0)
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", ActiveAxis+x);
else
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", ActiveAxis-x);
}
function ToggleTransformAxisX_Execute(){
if(GetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED") !== 1)
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 1);
else
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 7);
}
function ToggleTransformAxisY_Execute(){
if(GetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED") !== 2)
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 2);
else
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 7);;
}
function ToggleTransformAxisZ_Execute(){
if(GetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED") !== 4)
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 4);
else
SetUserPref("3D_TRANSFO_EDITED_AXIS_CHANGED", 7);
}
Re: help with last similar operation in stack
another problem that i'd like to solve is flattening according to axis with changed pivot position
example:
by default to change global + cog will be
Scale(null, 1, 0.000000000001, 1, siRelative, siGlobalCOG, siObj, siXYZ, null, null, null, null, null, null, null, 0, null);
but when i'm changing to a modified pivot (alt dragging) will have something like this
Scale(null, 1, 0.000000000001, 1, siRelative, siGlobalCOG, siObj, siXYZ, null, null, null, true, -1.8472517205702, -5.51816828300463, -0.436557306254863, 0, null);
is any way to define where's my current pivot position ?
example:
by default to change global + cog will be
Scale(null, 1, 0.000000000001, 1, siRelative, siGlobalCOG, siObj, siXYZ, null, null, null, null, null, null, null, 0, null);
but when i'm changing to a modified pivot (alt dragging) will have something like this
Scale(null, 1, 0.000000000001, 1, siRelative, siGlobalCOG, siObj, siXYZ, null, null, null, true, -1.8472517205702, -5.51816828300463, -0.436557306254863, 0, null);
is any way to define where's my current pivot position ?
Re: help with last similar operation in stack
Sorry, I don't know a way to get current pivot position.
Re: help with last similar operation in stack
found only this, dont know how to manipulate with them
0x08 Center Pivot mode. If there is no center pivot, this is the same as Object Parent mode (0x06).
http://docs.autodesk.com/SI/2015/ENU/So ... ents-2.htm
0x08 Center Pivot mode. If there is no center pivot, this is the same as Object Parent mode (0x06).
http://docs.autodesk.com/SI/2015/ENU/So ... ents-2.htm
Re: help with last similar operation in stack
That's for changing transformation referential mode (buttons on the transform panel Global, Local, View etc.)
Code: Select all
SetTransformRefMode(8);
Re: help with last similar operation in stack
I wonder if there's such a future like blender's Spin
select some edges, place a pivot & extract towards that direction(with desired loop), a good example will be pipes
I had a lot of troubles doing romb shape in 4 directions (4 corners & from each selected edge) good example
select some edges, place a pivot & extract towards that direction(with desired loop), a good example will be pipes
I had a lot of troubles doing romb shape in 4 directions (4 corners & from each selected edge) good example
Re: help with last similar operation in stack
Hello, you can achieve something similar by changing object's center and then applying Extrude Op.
If you wont, I can try to make a plugin to optimize the process a little.
If you wont, I can try to make a plugin to optimize the process a little.
Re: help with last similar operation in stack
Hello, was thinking a way to improve it -> too many clicking for one extrusion
1. move center
2. rotate
3. extude along normals: frame object, subd's, length, transform per subd, rotate axis (this can be scripted)
main problem is center move & rotation - after an extrusion there's no way to change center for position/rotation (history tab won't allow that, instead will move center after last operation ) - so i have todo it again
my idea is a temporary pivot/null
* dragging will change length
* rotation will change the orientation
* scale - subd's numbers
as for pivot I'm looking towards texture projection(create new texture projection - is a template that will autodetect orientation, not the best, better then nothing) - so after freeze will delete all null's/pivots
as for ice, idk if it can be done there
thanks !
1. move center
2. rotate
3. extude along normals: frame object, subd's, length, transform per subd, rotate axis (this can be scripted)
main problem is center move & rotation - after an extrusion there's no way to change center for position/rotation (history tab won't allow that, instead will move center after last operation ) - so i have todo it again
my idea is a temporary pivot/null
* dragging will change length
* rotation will change the orientation
* scale - subd's numbers
as for pivot I'm looking towards texture projection(create new texture projection - is a template that will autodetect orientation, not the best, better then nothing) - so after freeze will delete all null's/pivots
as for ice, idk if it can be done there
thanks !
Re: help with last similar operation in stack
For u'r addon FFill, love it !
I'd like two additions to it
1. it works only for one object at a time, if it can be done for multiple selection
2. fill until there are no caps to fill - good example will be a cylinder with n vertical/U subd's, delete caps, fill holes
I'd like two additions to it
1. it works only for one object at a time, if it can be done for multiple selection
2. fill until there are no caps to fill - good example will be a cylinder with n vertical/U subd's, delete caps, fill holes
Re: help with last similar operation in stack
Hello, I made a quick prototype with ICE. I'll try to finish it when I have free time
Re: help with last similar operation in stack
Finished it. The plugin creates two nulls that control the center of spin, angle and number of subdivisions.
https://drive.google.com/file/d/11uxNEI ... sp=sharing
https://drive.google.com/file/d/11uxNEI ... sp=sharing
Re: help with last similar operation in stack
great work !!!
keeps history, intuitive & easy to use. Will test more !
keeps history, intuitive & easy to use. Will test more !
Re: help with last similar operation in stack
Колян, спасибо за плуг;)
Kolya, great plugin;)
Kolya, great plugin;)
Re: help with last similar operation in stack
Wow, another great tool for modeling!
Who is online
Users browsing this forum: No registered users and 58 guests