perspective match - save vanishing lines
Hello
if somebody use perspective match tool, I have a question :
I want to store some all vanishing lines of a view, and to be able to use them later.
When I make two scripts (ms) it works
When I make two macroscripts I get "no get fonction for undefined" at first line.
If somebody can help. Thanks.
to save :
---------------------
global xLine1s
global xLine1e
global yLine1s
global yLine1e
global zLine1s
global zLine1e
global xLine2s
global xLine2e
global yLine2s
global yLine2e
global zLine2s
global zLine2e
xLine1s = Perspective_Match.GetLineStart #xLine1
xLine1e = Perspective_Match.GetLineEnd #xLine1
xLine2s = Perspective_Match.GetLineStart #xLine2
xLine2e = Perspective_Match.GetLineEnd #xLine2
yLine1s = Perspective_Match.GetLineStart #yLine1
yLine1e = Perspective_Match.GetLineEnd #yLine1
yLine2s = Perspective_Match.GetLineStart #yLine2
yLine2e = Perspective_Match.GetLineEnd #yLine2
zLine1s = Perspective_Match.GetLineStart #zLine1
zLine1e = Perspective_Match.GetLineEnd #zLine1
zLine2s = Perspective_Match.GetLineStart #zLine2
zLine2e = Perspective_Match.GetLineEnd #zLine2
--------
to apply :
Perspective_Match.setLineStart #xLine1 [xLine1s[1],xLine1s[2]]
Perspective_Match.setLineEnd #xLine1 [xLine1e[1],xLine1e[2]]
Perspective_Match.setLineStart #yLine1 [yLine1s[1],yLine1s[2]]
Perspective_Match.setLineEnd #yLine1 [yLine1e[1],yLine1e[2]]
Perspective_Match.setLineStart #zLine1 [zLine1s[1],zLine1s[2]]
Perspective_Match.setLineEnd #zLine1 [zLine1e[1],zLine1e[2]]
Perspective_Match.setLineStart #xLine2 [xLine2s[1],xLine2s[2]]
Perspective_Match.setLineEnd #xLine2 [xLine2e[1],xLine2e[2]]
Perspective_Match.setLineStart #yLine2 [yLine2s[1],yLine2s[2]]
Perspective_Match.setLineEnd #yLine2 [yLine2e[1],yLine2e[2]]
Perspective_Match.setLineStart #zLine2 [zLine2s[1],zLine2s[2]]
Perspective_Match.setLineEnd #zLine2 [zLine2e[1],zLine2e[2]]
---------
Comments
get and set anchor points positions
bga
Thanks barigazy, it works
Thanks barigazy, it works !
If I want to save a PML for each camera
global ("PLM"+ $.name) as name = undefined
(...)
is something I can do ?